GetRValue macro (wingdi.h)

The GetRValue macro retrieves an intensity value for the red component of a red, green, blue (RGB) value.

Syntax

void GetRValue(
   rgb
);

Parameters

rgb

Specifies an RGB color value.

Return value

None

Remarks

The intensity value is in the range 0 through 255.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)

See also

Color Macros

Colors Overview

GetBValue

GetGValue

PALETTEINDEX

PALETTERGB

RGB