GetRValue

3.1

  BYTE GetRValue(rgb)    
  DWORD rgb; /* RGB color value */

The GetRValue macro extracts the intensity value of the red 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 red color field.

Comments

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

#define GetRValue(rgb)  ((BYTE)(rgb))

See Also

GetBValue, GetGValue, RGB