Query: bitmap_mask_color
OS: mojave
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
bitmap_mask_color(3alleg4) Allegro manual bitmap_mask_color(3alleg4)NAMEbitmap_mask_color - Returns the mask color of the specified bitmap. Allegro game programming library.SYNOPSIS#include <allegro.h> int bitmap_mask_color(BITMAP *bmp);DESCRIPTIONReturns the mask color for the specified bitmap (the value which is skipped when drawing sprites). For 256-color bitmaps this is zero, and for truecolor bitmaps it is bright pink (maximum red and blue, zero green). A frequent use of this function is to clear a bitmap with the mask color so you can later use this bitmap with masked_blit() or draw_sprite() after drawing other stuff on it. Example: /* Replace mask color with another color. */ for (y = 0; y h; y++) for (x = 0; x w; x++) if (getpixel(bmp, x, y) == bitmap_mask_color(bmp)) putpixel(bmp, x, y, another_color);SEE ALSOMASK_COLOR_8(3alleg4), set_color_depth(3alleg4), bitmap_color_depth(3alleg4), ex3d(3alleg4), exmouse(3alleg4), expat(3alleg4) Allegro version 4.4.2 bitmap_mask_color(3alleg4)
Related Man Pages |
---|
bitmap_mask_color(3alleg4) - centos |
bitmap_mask_color(3alleg4) - mojave |
bitmap_mask_color(3alleg4) - php |
bitmap_mask_color(3alleg4) - linux |
bitmap_mask_color(3alleg4) - v7 |
Similar Topics in the Unix Linux Community |
---|
moving and renaming multiple files |
bmp to gif using convert |
I would like an online programming teacher. |
kernel hacking |