C#画笔Pen用法实例
程序员文章站
2023-11-17 19:16:10
本文实例讲述了c#画笔pen用法。分享给大家供大家参考。具体如下:
using system;
using system.collections.generic...
本文实例讲述了c#画笔pen用法。分享给大家供大家参考。具体如下:
using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.text; using system.windows.forms; using system.drawing.drawing2d; namespace windowsapplication2 { public partial class form11 : form { public form11() { initializecomponent(); } private void button1_click(object sender, eventargs e) { pen pen = new pen(color.blue, 12); pen.endcap = linecap.diamondanchor; graphics g = this.creategraphics(); g.drawline(pen, 10, 50, 100, 50); } } }
希望本文所述对大家的c#程序设计有所帮助。
下一篇: 地方性人才网站的出路在那里?