2013-12-23
展开全部
根据pen的对象修改粗细线条
Graphics g = Graphics.FromHwnd(this.Handle);
float wid = (float)4.1;
Pen p = new Pen(Color.Red,wid );
g.DrawRectangle(p, 0, 0, 100, 50);
float wid2 = (float)1.3;
Pen p2 = new Pen(Color.Green, wid2);
g.DrawRectangle(p2, 0, 100, 100, 50);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询