ScaleAtPrepend(Matrix, Double, Double, Double, Double) Method

Definition

Assembly PanAndZoom.dll

Prepends a scale around the center of provided matrix.

public static Matrix ScaleAtPrepend(Matrix matrix, double scaleX, double scaleY, double centerX, double centerY)

Parameters

matrix
Avalonia.Matrix

The matrix to prepend scale.

scaleX
Double

Scaling factor that is applied along the x-axis.

scaleY
Double

Scaling factor that is applied along the y-axis.

centerX
Double

The center X-coordinate of the scaling.

centerY
Double

The center Y-coordinate of the scaling.

Returns

Avalonia.Matrix
The created scaling matrix.