e.Graphics.DrawEllipse Pixelsize [solved]

Posts 1–6 of 6 · Page 1 of 1
e.Graphics.DrawEllipse Pixelsize [solved]
Hey guys i need some help with the e.Graphics.DrawEllipse function.

This is what i got now

It works perfect

But i cant change the thickness of the circle its now 1 pixel thick and i want it 2 pixels
I tryed to change this to 2 but that doesnt work
Tried this?
e.Graphic.DrawEllipse(New Pen(Brushes.Red, 2), 0, 0, 59, 59)
You need to actually pass the new Pen object as the argument:

[highlight=vb.net]
Dim redPen As New Drawing.Pen(Color.Red, 2)
e.Graphics.DrawEllipse(redPen, 0, 0, 59, 59)
[/highlight]
Quote Originally Posted by master131 View Post
Tried this?
e.Graphic.DrawEllipse(New Pen(Brushes.Red, 2), 0, 0, 59, 59)
That gives me an error but thanks


Quote Originally Posted by Jason View Post
You need to actually pass the new Pen object as the argument:

[highlight=vb.net]
Dim redPen As New Drawing.Pen(Color.Red, 2)
e.Graphics.DrawEllipse(redPen, 0, 0, 59, 59)
[/highlight]
Thanks that works



/Request Marked As Solved
Woops, wrote brushes instead of color, lol.
Marked solved.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us