RGB

This macro is used to combine red, green, and blue color components into a color.

COLORREF RGB(
	BYTE byRed,		// red part of the color
	BYTE byGreen,	// green part of the color
	BYTE byBlue		// blue part of the color
);

Parameters

byRed

Red part of the color, range of values: 0~255.

byGreen

Green part of the color, range of values:0~255.

byBlue

Blue part of the color, range of values:0~255.

Return Value

Return mixture colors.

Remarks

The red, green, and blue components can be separated from the color by GetRValue, GetGValue, and GetBValue macros.

RGB macros are defined in the Windows SDK.

Examples

None

(贡献者:Krissi  编辑