BYTE GetGValue(rgb) | |||||
DWORD rgb; | /* RGB color value | */ |
The GetGValue macro extracts the intensity value of the green color field from the 32-bit integer value specified by the rgb parameter.
rgb
Specifies the RGB color value.
The return value specifies the intensity of the green color field.
The GetGValue macro is defined in WINDOWS.H as follows:
#define GetGValue(rgb) ((BYTE)(((WORD)(rgb)) >> 8))