getb32

Extract a color component from the specified pixel format.

Description

int getb32(int c);
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);

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: