Share via


PathExtensions.AsScaledPath Method

Definition

Overloads

AsScaledPath(PathF, Single)

Creates a new path by scaling the target path uniformly.

AsScaledPath(PathF, Single, Single)

Creates a new path by scaling the target path with separate x and y scale factors.

AsScaledPath(PathF, Single)

Source:
PathExtensions.cs
Source:
PathExtensions.cs
Source:
PathExtensions.cs

Creates a new path by scaling the target path uniformly.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Graphics::PathF ^ AsScaledPath(Microsoft::Maui::Graphics::PathF ^ target, float scale);
public static Microsoft.Maui.Graphics.PathF AsScaledPath(this Microsoft.Maui.Graphics.PathF target, float scale);
static member AsScaledPath : Microsoft.Maui.Graphics.PathF * single -> Microsoft.Maui.Graphics.PathF
<Extension()>
Public Function AsScaledPath (target As PathF, scale As Single) As PathF

Parameters

target
PathF

The path to scale.

scale
Single

The uniform scale factor to apply to both x and y dimensions.

Returns

A new scaled path.

Applies to

AsScaledPath(PathF, Single, Single)

Source:
PathExtensions.cs
Source:
PathExtensions.cs
Source:
PathExtensions.cs

Creates a new path by scaling the target path with separate x and y scale factors.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Graphics::PathF ^ AsScaledPath(Microsoft::Maui::Graphics::PathF ^ target, float xScale, float yScale);
public static Microsoft.Maui.Graphics.PathF AsScaledPath(this Microsoft.Maui.Graphics.PathF target, float xScale, float yScale);
static member AsScaledPath : Microsoft.Maui.Graphics.PathF * single * single -> Microsoft.Maui.Graphics.PathF
<Extension()>
Public Function AsScaledPath (target As PathF, xScale As Single, yScale As Single) As PathF

Parameters

target
PathF

The path to scale.

xScale
Single

The scale factor to apply to the x dimension.

yScale
Single

The scale factor to apply to the y dimension.

Returns

A new scaled path.

Applies to