Share via


SKGraphicsExtensions.AsRotatedAndroidPath Method

Definition

Converts a PathF to a SkiaSharp SKPath with a specified pixels-per-unit value, zoom level, and rotation angle.

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

Parameters

target
PathF

The PathF to convert.

center
PointF

The center point around which to rotate the path.

ppu
Single

The pixels-per-unit value.

zoom
Single

The zoom level.

angle
Single

The rotation angle in degrees.

Returns

A SkiaSharp SKPath that corresponds to the specified PathF, scaled by the specified pixels-per-unit value and zoom level, and rotated around the specified center point.

Applies to