[]
Describes a set of geometric figures that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.
public class GraphicsPath
Initializes a new instance of the GraphicsPath class with explicitly provided fill mode.
public GraphicsPath(FillMode fillMode, params IFigure[] figures)
fillMode
FillModeSpecifies how the interior of closed figures is filled.
figures
IFigure[]The array of figures to be added to the path.
Initializes a new instance of the GraphicsPath class with the alternate fill mode.
public GraphicsPath(params IFigure[] figures)
figures
IFigure[]The array of figures to be added to the path.
Gets the array of figures in the path.
public IFigure[] Figures { get; }
Gets a value specifying how the interior of closed figures is filled.
public FillMode FillMode { get; }
Creates a copy of the GraphicsPath.
public GraphicsPath Clone()
Returns a rectangle that bounds this GraphicsPath when this path is transformed by the specified System.Numerics.Matrix3x2.
public RectangleF GetBounds(Matrix3x2 worldTransform)
worldTransform
System.Numerics.Matrix3x2The transform to apply to this path before calculating its bounds.
A System.Drawing.RectangleF that represents a rectangle that bounds this GraphicsPath.
Creates a transformed copy of the GraphicsPath.
public GraphicsPath TransformPath(Matrix3x2 worldTransform)
worldTransform
System.Numerics.Matrix3x2The transformation to apply.
Widens the GraphicsPath by the specified stroke and returns the result as a new path.
public GraphicsPath Widen(Pen pen, Matrix3x2 transformBefore, Matrix3x2 transformAfter)
pen
PenThe pen to apply to the source path.
transformBefore
System.Numerics.Matrix3x2The transformation to apply before widening.
transformAfter
System.Numerics.Matrix3x2The transformation to apply after widening.
Widens the GraphicsPath by the specified stroke and returns the result as a new path.
public GraphicsPath Widen(Pen pen)
pen
PenThe pen to apply to the source path.