bitmap_mask_color man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

bitmap_mask_color(3)		Allegro manual		  bitmap_mask_color(3)

NAME
       bitmap_mask_color  -  Returns  the  mask color of the specified bitmap.
       Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       int bitmap_mask_color(BITMAP *bmp);

DESCRIPTION
       Returns 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 ALSO
       MASK_COLOR_8(3),	 set_color_depth(3),  bitmap_color_depth(3),  ex3d(3),
       exmouse(3), expat(3)

Allegro				 version 4.4.2		  bitmap_mask_color(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net