[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmapGraphics.Path

Class GcBitmapGraphics.Path

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

Represents a graphics path in GcBitmapGraphics.

public class GcBitmapGraphics.Path : IPath, IDisposable
Inheritance
object
GcBitmapGraphics.Path
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Properties

FigureHasSegments

Gets a value indicating if the active figure contains one or more segments.

public bool FigureHasSegments { get; }

Property Value

bool

FigureStarted

Gets a value indicating if there is an active figure to update.

public bool FigureStarted { get; }

Property Value

bool

GraphicsPath

Gets the underlying GraphicsPath object after closing the GcBitmapGraphics.Path.

public GraphicsPath GraphicsPath { get; }

Property Value

GraphicsPath

IsClosed

Gets a value indicating if the path is closed for subsequent modifications.

public bool IsClosed { get; }

Property Value

bool

PathBuilder

Gets the underlying PathBuilder object before closing the GcBitmapGraphics.Path.

public PathBuilder PathBuilder { get; }

Property Value

PathBuilder

Methods

AddArc(ArcSegment)

Adds a single arc to the path geometry.

public void AddArc(ArcSegment arcSegment)

Parameters

arcSegment ArcSegment

The arc segment to add to the figure.

AddBezier(PointF, PointF, PointF)

Creates a cubic Bezier curve between the current point and the specified end point.

public void AddBezier(PointF p1, PointF p2, PointF endPoint)

Parameters

p1 System.Drawing.PointF

The first control point for the Bezier segment.

p2 System.Drawing.PointF

The second control point for the Bezier segment.

endPoint System.Drawing.PointF

The end point for the Bezier segment.

AddLine(PointF)

Creates a line segment between the current point and the specified end point and adds it to the geometry sink.

public void AddLine(PointF pointTo)

Parameters

pointTo System.Drawing.PointF

The end point of the line to draw.

AddQuadraticBezier(PointF, PointF)

Creates a quadratic Bezier curve between the current point and the specified end point.

public void AddQuadraticBezier(PointF p1, PointF endPoint)

Parameters

p1 System.Drawing.PointF

The control point of the quadratic Bezier segment.

endPoint System.Drawing.PointF

The end point of the quadratic Bezier segment.

BeginFigure(PointF)

Starts a new figure at the specified point.

public void BeginFigure(PointF point)

Parameters

point System.Drawing.PointF

The point at which to begin the new figure.

CancelFigure()

Discards the active figure.

public void CancelFigure()

Close()

Closes the path for modifications. The path cannot be modified after it is closed.

public void Close()

EndFigure(FigureEnd)

Ends the current figure; optionally, closes it.

public void EndFigure(FigureEnd figureEnd)

Parameters

figureEnd FigureEnd

A value that indicates whether the current figure is closed. If the figure is closed, a line is drawn between the current point and the start point specified by BeginFigure(PointF).

GetBounds()

Returns a rectangle that bounds this GcBitmapGraphics.Path.

public RectangleF GetBounds()

Returns

System.Drawing.RectangleF

A System.Drawing.RectangleF that represents a rectangle that bounds this GcBitmapGraphics.Path.

GetBounds(Matrix3x2)

Returns a rectangle that bounds this GcBitmapGraphics.Path 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 GcBitmapGraphics.Path.

SetFillMode(FillMode)

Specifies the method used to determine which points are inside the geometry described by this IPath and which points are outside.

public void SetFillMode(FillMode fillMode)

Parameters

fillMode FillMode

The method used to determine whether a given point is part of the geometry.