System.Drawing.Colorcode
Color是结构体,值类型.get
Empty,表示无效颜色,不是任何颜色,能够用来初始化一个color变量.Color c = Color.Empty;
变量
public byte A { get; }
public byte R { get; }
public byte G { get; }
public byte B { get; }
命名空间
返回color的alpha,red,green,blue份量.
其余属性都是系统颜色,能够为color变量赋值
Color c = Color.OrangeRed;方法
public static Color FromArgb(int alpha, int red, int green, int blue);
Color c = Color.FromArgb(1,2,3,4);
虽然参数是int类型,可是只能传入0-255,即一个byte
alpha = 255表示彻底不透明.命名