现在的位置: 首页 > 综合 > 正文

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

2018年05月28日 ⁄ 综合 ⁄ 共 469字 ⁄ 字号 评论关闭

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)

抱歉!评论已关闭.