GetRValue

Syntax

BYTE GetRValue(rgbColor)

This macro extracts the red value from an RGB color value.

Parameter Type/Description  

rgbColor DWORD Specifies a red, a green, and a blue color field, each specifying the intensity of the given color.  

Return Value

The return value specifies a byte that contains the red value of the rgbColor parameter.

Comments

The value 0FFH corresponds to the maximum intensity value for a single byte; 000H corresponds to the minimum intensity value for a single byte.