Color::Color(BYTE,BYTE,BYTE,BYTE) method (gdipluscolor.h)

Creates a Color::Color object by using specified values for the alpha, red, green, and blue components.

Syntax

void Color(
  BYTE a,
  BYTE r,
  BYTE g,
  BYTE b
);

Parameters

a

Type: BYTE

Byte that specifies the alpha component.

r

Type: BYTE

Byte that specifies the red component.

g

Type: BYTE

Byte that specifies the green component.

b

Type: BYTE

Byte that specifies the blue component.

Return value

None

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdipluscolor.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Color

Color Constructors