GdiPlus/Gdi+ 的Color()和Gdi 的RGB()宏的区别

Color定义:

Constructor Description
Color(ARGB)

Creates a Color::Color object by using an ARGB value.

Color(BYTE,BYTE,BYTE)

Creates a Color::Color object by using specified values for the red, green, and blue components. This constructor sets the alpha component to 255 (opaque).

Color(BYTE,BYTE,BYTE,BYTE)

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

Color()

Creates a Color::Color object and initializes it to opaque black. This is the default constructor.


RGB定义:

RGB(red,green,blue)


你可能感兴趣的:(GdiPlus/Gdi+ 的Color()和Gdi 的RGB()宏的区别)