System.Drawing.Drawing2D.GraphicsPath.Widen Method

Adds an additional outline to the path.

Syntax

public void Widen (System.Drawing.Pen pen)

Parameters

pen
A System.Drawing.Pen that specifies the width between the original outline of the path and the new outline this method creates.

Remarks

This method creates an outline around the original lines in this System.Drawing.Drawing2D.GraphicsPath, with a distance between the existing lines and the new outline equal to that of the width of the System.Drawing.Pen used in the call to GraphicsPath.Widen(System.Drawing.Pen). If you want to fill the space between the lines you must use the System.Drawing.Graphics.FillPath(System.Drawing.Brush, GraphicsPath) rather then the System.Drawing.Graphics.DrawPath(System.Drawing.Pen, GraphicsPath).

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0