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:
- [A5] Reading from bitmaps is amazingly slow (1)
- Direct access to a pointer to bitmap (1)
- al_get_pixel performance (1)
- You're such a disappointment.
- using a photo to floofill a bitmap
- Allegro color bitmap
- platformer tutorial/guide in c
- [A5] Load indexed bitmap
- Learning shaders, one and for all.
- Mouse Over IsometricTiles
Other recent discussions:
- Suggestions for optimization
- Draw rgb information from al_get_pixel with al_draw_text
- How to store rgb information of a pixel on a text file?
- Are Allegro routines thread safe, and if so, which?
- [ 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