Creating Paths
Using Skia.Path
From SVG String
Path Methods
Movement Commands
Starts a new contour at the specified point
Draws a straight line to the specified point
Relative move (offset from current position)
Relative line (offset from current position)
Curves
Draws a quadratic Bezier curve
Draws a cubic Bezier curve
Draws a conic curve with weight
Arcs
Draws an arc within an oval
arcToRotated
(rx: number, ry: number, xAxisRotate: number, useSmallArc: boolean, isCCW: boolean, x: number, y: number) => SkPath
Draws an SVG-style arc
Shapes
Adds a rectangle to the path
Adds a rounded rectangle
Adds a circle
Adds an ellipse
Adds a polygon from points
Path Operations
Closes the current contour with a line to the start point
Clears the path and releases memory
Clears the path but keeps allocated memory
Creates a copy of the path
Transformations
Transforms the path by a matrix
Translates the path
Boolean Operations
Performs boolean operations on pathsOperations:
PathOp.Difference: Subtract path2 from path1PathOp.Intersect: Intersection of both pathsPathOp.Union: Combination of both pathsPathOp.XOR: Exclusive ORPathOp.ReverseDifference: Subtract path1 from path2
Simplifies overlapping contours
Stroking
Converts path to its stroked equivalent
Applies dash pattern to path
Measurement
Gets the bounding box
Gets tight bounds (more accurate but slower)
Tests if a point is inside the path
Checks if path has no verbs
Path Interpolation
Interpolates between two paths
Checks if paths can be interpolated
Path Trimming
Trims path to a segment (0-1)