ZoomifyViewer.calculateScreenZoom()

Availability

Flash Player 6.

Usage

ZoomifyViewerInstance.calculateScreenZoom();

Parameters

None

Returns

The zoom value to fit the image to the display area.

Description

Returns the zoom level necessary to exactly fit the image within the ZoomifyViewer display area.

Example


var screenZoom=ZoomifyViewerInstance.calculateScreenZoom();

See also

ZoomifyViewer.getInitialX
ZoomifyViewer.getInitialY
ZoomifyViewer.getInitialZoom
ZoomifyViewer.setZoom
ZoomifyViewer.setView
ZoomifyViewer.resetView
ZoomifyViewer.setMinZoom
ZoomifyViewer.setMaxZoom
ZoomifyViewer.zoomIn
ZoomifyViewer.zoomOut
ZoomifyViewer.updateView