ScaleAndTranslate(Double, Double, Double, Double) Method

Definition

Assembly PanAndZoom.dll

Creates a translation and scale matrix using the specified offsets and scales along the x-axis and y-axis.

public static Matrix ScaleAndTranslate(double scaleX, double scaleY, double offsetX, double offsetY)

Parameters

scaleX
Double

Scaling factor that is applied along the x-axis.

scaleY
Double

Scaling factor that is applied along the y-axis.

offsetX
Double

X-coordinate offset.

offsetY
Double

Y-coordinate offset.

Returns

Avalonia.Matrix
The created translation and scale matrix.