GetGValue

Syntax

BYTE GetGValue(rgbColor)

This macro extracts the green 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 green 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.