vb.net – 从颜色转换为画笔
发布时间:2020-12-17 00:13:27 所属栏目:大数据 来源:网络整理
导读:如何在vb.net中将system.drawing.color转换为system.drawing.brushes? 元问题:什么是/为什么刷/颜色/笔之间的区别? 这应该为你做: 'just a solid brush:Using br = New SolidBrush(Colors.Black) e.Graphics.FillRectangle(br,New Rectangle(50,50,10,10
如何在vb.net中将system.drawing.color转换为system.drawing.brushes?
元问题:什么是/为什么刷/颜色/笔之间的区别?
这应该为你做:
'just a solid brush: Using br = New SolidBrush(Colors.Black) e.Graphics.FillRectangle(br,New Rectangle(50,50,10,10)) End Using 'A red -> orange gradient,at 45 degrees: Using br = New LinearGradientBrush(new Rectangle(50,10),Color.Red,Color.Orange,25) e.Graphics.FillRectangle(br,10)) End Using (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |