|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Convert alpha, red, green, and blue values to composite color format
PgColor_t PgARGB( int A, int R, int G, int B );
- The alpha value.
- The red value.
- The green value.
- The blue value.
This macro converts alpha, red, green, and blue values into a composite color value (of type PgColor_t). The values for alpha, red, green, and blue range from 0 to 255. If you set the red, green, and blue values to 0, the color is black; if you set them to 255, the color is white. The meaning of the alpha value depends on the alpha model that you're using.
|This macro doesn't check the color model currently in use, and gives undefined results if you're not using the Pg_CM_ARGB model.|