GraphicsPath.Widen Method (Pen)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Adds an additional outline to the path.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public void Widen(
	Pen pen


Type: System.Drawing.Pen

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

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

.NET Framework
Available since 1.1
Return to top