GetGValue

3.1

  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.

Parameters

rgb

Specifies the RGB color value.

Return Value

The return value specifies the intensity of the green color field.

Comments

The GetGValue macro is defined in WINDOWS.H as follows:

#define GetGValue(rgb)  ((BYTE)(((WORD)(rgb)) >> 8))

See Also

GetBValue, GetRValue, RGB