Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 VB.NET 中,我正在使用类似这样的代码绘制一个椭圆。
aPen = New Pen(Color.Black) g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight)
但我想设置线条的粗细。我该怎么做?它是 Pen 的属性还是 DrawEllipse 方法的参数?
(注意:出于某种原因,帮助是 VisualStudio 让我失望了,所以无论如何我都必须上网。我想我会先在这里尝试。)
使用笔的Width属性。
Width
aPen.Width = 10.0F
元素