al_get_pixel
ALLEGRO_COLOR al_get_pixel(ALLEGRO_BITMAP *bitmap, int x, int y)
Introduced in 5.0.0
Get a pixel's color value from the specified 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.
See also: ALLEGRO_COLOR, al_put_pixel
Examples: ex_blend_test, ex_logo
Most helpful discussions:
- al_get_pixel performance (1)
- [ Allegro 5.2.11 ] al_put_pixel and al_get_pixel very very slow compared to A4 !
- upgrading tank war codebase to allegro 5
- Over mouse function
- Pixel perfect collision implementation for allegro 5
- Performance issue regarding al_put_pixel and raycasting
- Shader Problems - GLSL sampler3d() - 5.1.9
- memcmp for comparing colors
- Mode 7 graphics in Allegro 5...
- Allegro 5 - Bitmap Deferred Corruption(?)
Other recent discussions:
- Bad memory leak in al_get_pixel on Linux? (-2)
- [A5] Masked drawing?
- Getting the color of a background pixel
- Bug (or not) in Allegro
- al_get_backbuffer does not work
- Collision with Mappy
- My CPU usage is absurd
- Improving drawing speed
- multiple definition of `_currentLevel'
- convert Display to allegro_bitmap