GDI fill colour

retkehing

Well-known member
Joined
Feb 5, 2006
Messages
153
Programming Experience
Beginner
DrawingGraphicsDrawEllipse(DrawingPen, 30, 100, 3, 3)
Dim DrawingBrush As System.Drawing.Brush
DrawingBrush = New SolidBrush(Color.BlueViolet)
e.Graphics.FillEllipse(Brush As System.Drawing.Brush(Color.Black), 50, 50, 7, 7)

By using the above coding, I could fill the ellipse; however, i am seeking for method that could combine the idea of drawing and filling together in one line.
 
You can't draw a border with one color and fill with another color in one statement (if that was what you meant), there are no methods to do that.
 
Back
Top