GraphicsPath.Widen Method (Pen)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
Show: