当前位置:编程学习 > C#/ASP.NET >>

GDI+绘图问题 大哥们来看一看

小弟记得在.net GDI+  中有一个方法  可以一次绘制多条连续的线段,请问如何使用 --------------------编程问答-------------------- public void DrawLinesPoint(PaintEventArgs e)
{

    // Create pen.
    Pen pen = new Pen(Color.Black, 3);

    // Create array of points that define lines to draw.
    Point[] points =
             {
                 new Point(10,  10),
                 new Point(10, 100),
                 new Point(200,  50),
                 new Point(250, 300)
             };

    //Draw lines to screen.
    e.Graphics.DrawLines(pen, points);
}

参见
http://msdn.microsoft.com/zh-cn/library/7ewkcdb3.aspx --------------------编程问答-------------------- 谢谢  问题解决了 谢谢
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,