ZoomPanelGetViewboxFromCenterAndZoomFactor Method |
Namespace: Ab2d.Controls
public Rect GetViewboxFromCenterAndZoomFactor( Point centerPosition, ZoomPanelCenterPositionUnitsType units, double zoomFactor )
GetViewboxFromCenterAndZoomFactor method returns viewbox as Rect from the specified centerPosition, its units and zoomFactor.
Note that if absolute units are used for center position, the DesiredSize of the currently set ZoomPanel's content is used to calculate absolute values from relative values.
If viewbox cannot be get (for example when there is no content set), an Empty Rect is returned.