简体   繁体   中英

How do I set the thickness of a line in VB.NET

In VB.NET I'm drawing an ellipse using some code like this.

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

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

(NB : For some reason, the help is VisualStudio is failing me so I've got to hit the web anyway. Thought I'd try here first.)

使用笔的Width属性。

aPen.Width = 10.0F

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM