Edit

Share via


SKMatrix.CreateScale Method

Definition

Overloads

Name Description
CreateScale(Single, Single)

Creates a scaling matrix.

CreateScale(Single, Single, Single, Single)

Creates a scaling matrix around a pivot point.

CreateScale(Single, Single)

Creates a scaling matrix.

public static SkiaSharp.SKMatrix CreateScale(float x, float y);

Parameters

x
Single

The scale factor in the x-direction.

y
Single

The scale factor in the y-direction.

Returns

Returns the new scaling matrix.

Applies to

CreateScale(Single, Single, Single, Single)

Creates a scaling matrix around a pivot point.

public static SkiaSharp.SKMatrix CreateScale(float x, float y, float pivotX, float pivotY);

Parameters

x
Single

The scale factor in the x-direction.

y
Single

The scale factor in the y-direction.

pivotX
Single

The x-coordinate of the pivot point.

pivotY
Single

The y-coordinate of the pivot point.

Returns

Returns the new scaling matrix.

Applies to