How to set line thickness in VB.NET

In VB.NET, I draw an ellipse using such code.

aPen = New Pen(Color.Black) g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight) 

But I want to set the line thickness. How can I do it? Is this a Pen property or an argument to the DrawEllipse method?

(NB: For some reason, VisualStudio's help didn’t bring me down, so I don’t care to hit the network anyway. I think I will try here first.)

+4
source share
1 answer

Use the pen Width property.

 aPen.Width = 10.0F 
+5
source

Source: https://habr.com/ru/post/1276990/


All Articles