SKPathMeasure Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a type that can be used to calculate the length of, and segments of, a path.
public class SKPathMeasure : SkiaSharp.SKObject
- Inheritance
Constructors
| Name | Description |
|---|---|
| SKPathMeasure() |
Create a new SKPathMeasure instance with a |
| SKPathMeasure(SKPath, Boolean, Single) |
Create a new SKPathMeasure instance with the specified path. |
Properties
| Name | Description |
|---|---|
| Handle |
Gets or sets the handle to the underlying native object. (Inherited from SKObject) |
| IgnorePublicDispose |
Gets 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 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 or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed. (Inherited from SKNativeObject) |
Methods
| Name | Description |
|---|---|
| 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. |
| DisposeUnownedManaged() |
Implemented by derived SKObject types to dispose managed objects that are not owned by this instance. (Inherited from SKObject) |
| GetMatrix(Single, SKMatrix, SKPathMeasureMatrixFlags) |
Computes a SKMatrix from the specified distance along the path. |
| GetMatrix(Single, 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. |
| GetPosition(Single) |
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, Boolean) |
Returns a new path containing the intervening segment(s) between the start and stop distances. |
| GetSegment(Single, Single, SKPath, Boolean) |
Obsolete.
Extracts a contour segment of the path between two distances and appends it to the destination path. |
| GetSegment(Single, Single, SKPathBuilder, Boolean) |
Copies a segment of the path contour, between the specified distances, into the specified path builder. |
| GetTangent(Single, SKPoint) |
Computes the corresponding tangent from the specified distance along the path. |
| GetTangent(Single) |
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. |
| SetPath(SKPath) |
Reset the path measure with the specified path. |