Expand
GetRValue Macro

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

Syntax

BYTE GetRValue(
    DWORD rgb
);

Parameters

rgb

Specifies an RGB color value.

Return Value

The return value is the intensity of the red component of the specified RGB color.

Remarks

The intensity value is in the range 0 through 255.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

See Also

Colors Overview
Color Macros
GetBValue
GetGValue
PALETTEINDEX
PALETTERGB
RGB

 

 

Send comments about this topic to Microsoft

Build date: 5/4/2010

Community ContentAdd
Page view tracker