GetRValue

The GetGValue macro is used to return the red value in the specified color.

BYTE GetRValue(COLORREF rgb);

Parameters

rgb

The specified color.

Return Value

Returns the red value in the specified color, which ranges from 0 to 255.

Remarks

GetRValue macro is defined in the Windows SDK.

Examples

None

(贡献者:慢羊羊  编辑