月光魔草

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

HEX16色转Bursh:

Brush brush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFFFFF"));
1
RGB三原色转Bursh:

Brush brush = new SolidColorBrush(Color.FromRgb(255, 255, 255));
1
HEX16色转Bursh:

Brush brush = (Brush)new BrushConverter().ConvertFromString("#FFFFFF");
1
Color转Bursh:

Brush brush = new SolidColorBrush(Colors.White));
————————————————
版权声明:本文为CSDN博主「XBMY」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/cxb2011/article/details/105148834

posted on 2022-08-29 14:46  月光魔草  阅读(83)  评论(0)    收藏  举报