al_convert_mask_to_alpha
void al_convert_mask_to_alpha(ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR mask_color)
Introduced in 5.0.0
Convert the given mask color to an alpha channel in the bitmap. Can be used to convert older 4.2-style bitmaps with magic pink to alpha-ready bitmaps.
See also: ALLEGRO_COLOR
Most helpful discussions:
- Use magenta as transparent color (1)
- al_load_bitmap_font (1)
- how to : Bitmap Color Mask (1)
- [a5] set_multiply_blender (1)
- [A5] Drawing a sprite to a display (1)
- allegro 4 to allegro 5 issue (1)
- Section of Code Lagging the Program
- A4 blit Equivalent
- I am looking for correct detailed instructions how to build Allegro....
- help: memory bitmap background image causing artifacts
Other recent discussions:
- Icon on Mac
- al_draw_scaled_bitmpa not working if called more than 1 time
- Help with blender and alpha masking
- Clear bitmap to transparent
- Switching between displayed windows
- c++ Allegro 5 - drawing bitmap region over backgound
- Can't delete pointers of ALLEGRO_BITMAP from std::map
- Segmentation Fault while "al_convert_mask_to_alpha". (-1)
- [A5] Bitmap memory leaks (Release video texture failed)
- Allegro 5 - Bitmap Deferred Corruption(?)