Skip to main content

Class SKPathMeasure

Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll

public sealed class SKPathMeasure : IDisposable

Inheritance

objectSKPathMeasure

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SKPathMeasure(SKPath, bool, float)

public SKPathMeasure(SKPath path, bool forceClosed = false, float resScale = 1)

Parameters

path SKPath

forceClosed bool

resScale float

SKPathMeasure(SKPath)

public SKPathMeasure(SKPath path)

Parameters

path SKPath

Properties

ForceClosed

public bool ForceClosed { get; }

Property Value

bool

Length

public float Length { get; }

Property Value

float

ResScale

public float ResScale { get; }

Property Value

float

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetPosition(float, out SKPoint)

public bool GetPosition(float distance, out SKPoint position)

Parameters

distance float

position SKPoint

Returns

bool

GetPositionAndTangent(float, out SKPoint, out SKPoint)

public bool GetPositionAndTangent(float distance, out SKPoint position, out SKPoint tangent)

Parameters

distance float

position SKPoint

tangent SKPoint

Returns

bool

GetSegment(float, float, SKPath, bool)

public bool GetSegment(float startD, float stopD, SKPath destination, bool startWithMoveTo)

Parameters

startD float

stopD float

destination SKPath

startWithMoveTo bool

Returns

bool