GraphicsPath::Widen Method (Pen^, Matrix^)

 

Adds an additional outline to the GraphicsPath.

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

public:
void Widen(
	Pen^ pen,
	Matrix^ matrix
)

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.

matrix
Type: System.Drawing.Drawing2D::Matrix^

A Matrix that specifies a transform to apply to the path before widening.

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: