al_put_pixel
void al_put_pixel(int x, int y, ALLEGRO_COLOR color)
Introduced in 5.0.0
Draw a single pixel on the target bitmap. This operation is slow on non-memory bitmaps. Consider locking the bitmap if you are going to use this function multiple times on the same bitmap. This function is not affected by the transformations or the color blenders.
See also: ALLEGRO_COLOR, al_get_pixel, al_put_blended_pixel
Examples: ex_blit, ex_clip, ex_drawpixels, ex_icon, ex_logo, ex_transform
Most helpful discussions:
- Pixel by pixel operations (Allegro 5) (1)
- [ Allegro 5.2.11 ] al_put_pixel and al_get_pixel very very slow compared to A4 !
- Performance issue regarding al_put_pixel and raycasting
- Mode 7 graphics in Allegro 5...
- Math graph plot
- Allegro 5 - Bitmap Deferred Corruption(?)
- Big FPS problem
- speeding up mandelbrot fractal creation
- "al_put_pixel" not working
- How to use al_draw_soft_line function
Other recent discussions:
- [A5] Masked drawing?
- using allegro with RGB image array ?
- [A5] Loading Bitmaps while al_hold_bitmap_drawing() is Engaged
- Floodfill...ish... math.
- Allegro Beginner questions
- [A5] pixel alpha // al_put_pixel() ?! game loop
- Allegro put_pixel
- [Allegro 5] Bitmap does not appear, unless clear_to_color is called
- Y-pos example for Peter Wang
- Bitmaps and multi-threading