Share via


SKGraphicsExtensions.AsSkiaPathFromSegment Method

Definition

Converts a segment of a PathF to a SkiaSharp SKPath with a specified pixels-per-unit value and zoom level.

public:
[System::Runtime::CompilerServices::Extension]
 static SkiaSharp::SKPath ^ AsSkiaPathFromSegment(Microsoft::Maui::Graphics::PathF ^ target, int segmentIndex, float ppu, float zoom);
public static SkiaSharp.SKPath AsSkiaPathFromSegment(this Microsoft.Maui.Graphics.PathF target, int segmentIndex, float ppu, float zoom);
static member AsSkiaPathFromSegment : Microsoft.Maui.Graphics.PathF * int * single * single -> SkiaSharp.SKPath
<Extension()>
Public Function AsSkiaPathFromSegment (target As PathF, segmentIndex As Integer, ppu As Single, zoom As Single) As SKPath

Parameters

target
PathF

The PathF containing the segment to convert.

segmentIndex
Int32

The index of the segment to convert.

ppu
Single

The pixels-per-unit value.

zoom
Single

The zoom level.

Returns

A SkiaSharp SKPath that corresponds to the specified segment of the PathF, scaled by the specified pixels-per-unit value and zoom level.

Applies to