getg24 man page on DragonFly

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

getr8(3)			Allegro manual			      getr8(3)

NAME
       getr8,  getg8,  getb8,  getr15, getg15, getb15, getr16, getg16, getb16,
       getr24, getg24, getb24, getr32, getg32, getb32 - Extract a color compo‐
       nent from the specified pixel format. Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       int getr8(int c);

       int getg8(int c);

       int getb8(int c);

       int getr15(int c);

       int getg15(int c);

       int getb15(int c);

       int getr16(int c);

       int getg16(int c);

       int getb16(int c);

       int getr24(int c);

       int getg24(int c);

       int getb24(int c);

       int getr32(int c);

       int getg32(int c);

       int getb32(int c);

DESCRIPTION
       Given  a	 color	in a display dependent format, these functions extract
       one of the red, green, or blue components (ranging 0-255). Example:

	  int r, g, b, color_value;

	  color_value = _getpixel15(screen, 100, 100);
	  r = getr15(color_value);
	  g = getg15(color_value);
	  b = getb15(color_value);

SEE ALSO
       geta32(3), getr(3), getr_depth(3), makecol(3), set_color_depth(3)

Allegro				 version 4.4.2			      getr8(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