GraphicsPath
open class GraphicsPath
Represents a path with Graphics objects.
-
Initializes a new instance of the GraphicsPath class.
Declaration
Swift
public init()
Return Value
The newly created GraphicsPath.
-
Adds an arc to the current GraphicsPath.
Declaration
Swift
open func addArc(_ rect: Rect, startAngle: Double, sweepAngle: Double)
Parameters
rect
A rectangle object that specifies the bounding rectangle for the ellipse that contains the arc to be drawn.
startAngle
The angle where the arc starts.
sweepAngle
The sweeping angle of the arc.
-
Converts each curve in the current GraphicsPath to a sequence of line segments.
Declaration
Swift
open func flatten(_ matrix: Matrix, error: Double)
Parameters
matrix
The matrix., by which the GraphicsPath is transformed before flattening.
error
The maximum allowed error between each curve and its flattened transformation.
-
Starts a figure in this GraphicsPath.
Declaration
Swift
open func startFigure()