System.Drawing.Drawing2D.GraphicsPath.Widen Method

Adds an additional outline to the System.Drawing.Drawing2D.GraphicsPath.

Syntax

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

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.

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). 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