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)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsClosed

Gets a value indicating if the current contour is closed.

IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
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()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKPathMeasure and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
GetMatrix(Single, SKMatrix, SKPathMeasureMatrixFlags)

Computes a SKMatrix from the specified distance along the path.

GetMatrix(Single, SKPathMeasureMatrixFlags)
GetPosition(Single, SKPoint)

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

GetPosition(Single)
GetPositionAndTangent(Single, SKPoint, SKPoint)

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

GetSegment(Single, Single, Boolean)
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.

GetTangent(Single)
NextContour()

Move to the next contour in the path.

SetPath(SKPath, Boolean)

Reset the path measure with the specified path.

SetPath(SKPath)

Applies to