Class SKPathMeasure
Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll
public sealed class SKPathMeasure : IDisposable
Inheritance
Implements
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
Length
public float Length { get; }
Property Value
ResScale
public float ResScale { get; }
Property Value
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
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
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