日期:2014-05-19  浏览次数:20989 次

画线是怎么设置线条的粗细呀???
画线是怎么设置线条的粗细呀???

------解决方案--------------------
Graphics vGraphics = Graphics.FromHwnd(Handle);
vGraphics.DrawLine(new Pen(Brushes.Black, 5),
// ~~~
new Point(10, 10), new Point(100, 100));

------解决方案--------------------
Pen redPen=new Pen(Color.Red,3);
Graphice dc=this.Graphics;
dc.DrewEllipse(redPen,200,150);
3,就是线条的粗细