[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GraphicsPath

Class GraphicsPath

Namespace
GrapeCity.Documents.Imaging
Assembly
GcDocs.Imaging.dll

Describes a set of geometric figures that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.

public class GraphicsPath
Inheritance
object
GraphicsPath
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GraphicsPath(FillMode, params IFigure[])

Initializes a new instance of the GraphicsPath class with explicitly provided fill mode.

public GraphicsPath(FillMode fillMode, params IFigure[] figures)

Parameters

fillMode FillMode

Specifies how the interior of closed figures is filled.

figures IFigure[]

The array of figures to be added to the path.

GraphicsPath(params IFigure[])

Initializes a new instance of the GraphicsPath class with the alternate fill mode.

public GraphicsPath(params IFigure[] figures)

Parameters

figures IFigure[]

The array of figures to be added to the path.

Properties

Figures

Gets the array of figures in the path.

public IFigure[] Figures { get; }

Property Value

IFigure[]

FillMode

Gets a value specifying how the interior of closed figures is filled.

public FillMode FillMode { get; }

Property Value

FillMode

Methods

Clone()

Creates a copy of the GraphicsPath.

public GraphicsPath Clone()

Returns

GraphicsPath

GetBounds(Matrix3x2)

Returns a rectangle that bounds this GraphicsPath when this path is transformed by the specified System.Numerics.Matrix3x2.

public RectangleF GetBounds(Matrix3x2 worldTransform)

Parameters

worldTransform System.Numerics.Matrix3x2

The transform to apply to this path before calculating its bounds.

Returns

System.Drawing.RectangleF

A System.Drawing.RectangleF that represents a rectangle that bounds this GraphicsPath.

TransformPath(Matrix3x2)

Creates a transformed copy of the GraphicsPath.

public GraphicsPath TransformPath(Matrix3x2 worldTransform)

Parameters

worldTransform System.Numerics.Matrix3x2

The transformation to apply.

Returns

GraphicsPath

Widen(Pen, Matrix3x2, Matrix3x2)

Widens the GraphicsPath by the specified stroke and returns the result as a new path.

public GraphicsPath Widen(Pen pen, Matrix3x2 transformBefore, Matrix3x2 transformAfter)

Parameters

pen Pen

The pen to apply to the source path.

transformBefore System.Numerics.Matrix3x2

The transformation to apply before widening.

transformAfter System.Numerics.Matrix3x2

The transformation to apply after widening.

Returns

GraphicsPath

Widen(Pen)

Widens the GraphicsPath by the specified stroke and returns the result as a new path.

public GraphicsPath Widen(Pen pen)

Parameters

pen Pen

The pen to apply to the source path.

Returns

GraphicsPath