Replaces this System.Drawing.Drawing2D.GraphicsPath with curves that enclose the area that is filled when this path is drawn by the specified pen.
- 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.
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).