CalculateMatrix(Double, Double, Double, Double, StretchMode) Method

Definition

Assembly PanAndZoom.dll

Calculate pan and zoom matrix based on provided stretch mode.

public static Matrix CalculateMatrix(double panelWidth, double panelHeight, double elementWidth, double elementHeight, StretchMode mode)

Parameters

panelWidth
Double

The panel width.

panelHeight
Double

The panel height.

elementWidth
Double

The element width.

elementHeight
Double

The element height.

mode
StretchMode

The stretch mode.

Returns