System.Drawing.Graphics.DrawLines C# (CSharp) Method

DrawLines() public method

public DrawLines ( Pen pen, Point points ) : void
pen Pen
points Point
return void
        public void DrawLines(Pen pen, Point [] points)
        {
            if (pen == null)
                throw new ArgumentNullException ("pen");

            if (points == null)
                throw new ArgumentNullException ("points");
            int count = points.Length;
            if (count < 2)
                return;

            MoveTo (points [0]);
            for (int i = 1; i < count; i++)
                LineTo (points [i]);
            StrokePen (pen);
        }

Same methods

Graphics::DrawLines ( Pen pen, PointF points ) : void

Usage Example

Example #1
1
 public void DrawPath(Graphics g, Pen p)
 {
     if (m_points != null)
      {
     g.DrawLines(p, m_points);
      }
 }
All Usage Examples Of System.Drawing.Graphics::DrawLines