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

DrawPath() public method

public DrawPath ( Pen pen, GraphicsPath path ) : void
pen Pen
path System.Drawing.Drawing2D.GraphicsPath
return void
        public void DrawPath(Pen pen, GraphicsPath path)
        {
            if (pen == null)
                throw new ArgumentNullException ("pen");
            if (path == null)
                throw new ArgumentNullException ("path");

            PlotPath (path);
            StrokePen (pen);
        }

Usage Example

Example #1
2
 public static void DrawRoundRectangle(Graphics g, Pen pen, Rectangle rect, int cornerRadius)
 {
     using (GraphicsPath path = CreateRoundedRectanglePath(rect, cornerRadius))
     {
         g.DrawPath(pen, path);
     }
 }
All Usage Examples Of System.Drawing.Graphics::DrawPath