SKPathMeasure Class

Definition

Represents a type that can be used to calculate the length of, and segments of, a path.

public class SKPathMeasure : SkiaSharp.SKObject
Inheritance

Constructors

SKPathMeasure()

Create a new SKPathMeasure instance with a null path.

SKPathMeasure(SKPath, Boolean, Single)

Create a new SKPathMeasure instance with the specified path.

Properties

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IsClosed

Gets a value indicating if the current contour is closed.

Length

Gets the total length of the current contour, or 0 if no path is associated.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)

Methods

Dispose() Inherited from SKNativeObject
Dispose(Boolean)
GetMatrix(Single, SKMatrix, SKPathMeasure+MatrixFlags)

Computes a SKMatrix from the specified distance along the path.

GetMatrix(Single, SKMatrix, SKPathMeasureMatrixFlags)

Computes a SKMatrix from the specified distance along the path.

GetPosition(Single, SKPoint)

Computes the corresponding position from the specified distance along the path.

GetPositionAndTangent(Single, SKPoint, SKPoint)

Computes the corresponding position and tangent from the specified distance along the path.

GetSegment(Single, Single, SKPath, Boolean)

Given a start and stop distance, update the destination path with the intervening segment(s).

GetTangent(Single, SKPoint)

Computes the corresponding tangent from the specified distance along the path.

NextContour()

Move to the next contour in the path.

SetPath(SKPath, Boolean)

Reset the path measure with the specified path.

Applies to