如何在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