SkiaSharp.SKPathMeasure Class

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

See Also: SKPathMeasure

Syntax

public class SKPathMeasure : SKObject

Remarks

Requirements

Namespace: SkiaSharp
Assembly: SkiaSharp (in SkiaSharp.dll)
Assembly Versions: 1.55.0.0, 1.56.0.0, 1.57.0.0, 1.58.0.0, 1.59.0.0

The members of SkiaSharp.SKPathMeasure are listed below.

See Also: SKObject

Public Constructors

Create a new SKPathMeasure instance with a null path.
Create a new SKPathMeasure instance with the specified path.

Public Properties

[read-only]
IsClosedBoolean. Gets a value indicating if the current contour is closed.
[read-only]
LengthSingle. Gets the total length of the current contour, or 0 if no path is associated.

Public Methods

GetMatrix(Single, out SKMatrix, SKPathMeasure+MatrixFlags) : Boolean
Computes a SKMatrix from the specified distance along the path.
GetMatrix(Single, out SKMatrix, SKPathMeasureMatrixFlags) : Boolean
Computes a SKMatrix from the specified distance along the path.
GetPosition(Single, out SKPoint) : Boolean
Computes the corresponding position from the specified distance along the path.
GetPositionAndTangent(Single, out SKPoint, out SKPoint) : Boolean
Computes the corresponding position and tangent from the specified distance along the path.
GetSegment(Single, Single, SKPath, Boolean) : Boolean
Given a start and stop distance, update the destination path with the intervening segment(s).
GetTangent(Single, out SKPoint) : Boolean
Computes the corresponding tangent from the specified distance along the path.
NextContour() : Boolean
Move to the next contour in the path.
SetPath(SKPath, Boolean)
Reset the path measure with the specified path.

Protected Methods

override
Dispose(Boolean)