System.Drawing.Drawing2D.GraphicsPath.Widen Method

Replaces this System.Drawing.Drawing2D.GraphicsPath with curves that enclose the area that is filled when this path is drawn by the specified pen.

Syntax

public void Widen (System.Drawing.Pen pen, Matrix matrix, float flatness)

Parameters

pen
A System.Drawing.Pen that specifies the width between the original outline of the path and the new outline this method creates.
matrix
A System.Drawing.Drawing2D.Matrix that specifies a transform to apply to the path before widening.
flatness
A value that specifies the flatness for curves.

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, Matrix, float). 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