System.Drawing.Color:
Color color = System.Drawing.ColorTranslator.FromHtml("#FFFFFF");
Color color = Color.FromArgb(透明度, red数字, green数字, blue数字); //这四个数字范围都是(0-255)
Color color = Color.FromRgb(red数字, green数字, blue数字);//默认透明度为255;
Color color = (Color)ColorConverter.ConvertFromString("#FFFFFF");
System.Windows.Media.Color:
System.Drawing.Color drawColor = System.Drawing.Color.FromArgb(255,255,255,255);
Color mediaColor=System.Widnows.Media.Color.FromArgb(drawColor.A,drawColor.R,drawColor.G,drawColor.B);
Brush:
Brush brush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#555555"));
标签:颜色,Color,System,drawColor,color,转换,WPF,Drawing,255 From: https://www.cnblogs.com/lionwang/p/17297115.html