ZoomifyViewer.setZoom(zoom)

Availability

Flash Player 6.

Usage

ZoomifyViewerInstance.setZoom(zoom);

Parameters

zoom - new zoom of the image.

Returns

Nothing

Description

Sets the zoom value of the current view. The zoom value is used to specify the magnification of the image where 100 means 100% magnification. Special case: setting zoom to -1 fits the image exactly within the display area. Calls to setZoom should be followed by a call to updateView in order to cause the ZoomifyViewer component to draw the new view.

Example


ZoomifyViewerInstance.setZoom(-1);
ZoomifyViewerInstance.updateView();

See also

ZoomifyViewer.setMinZoom
ZoomifyViewer.setMaxZoom
ZoomifyViewer.updateView
ZoomifyViewer.setView
ZoomifyViewer.setX
ZoomifyViewer.setY
ZoomifyViewer.getZoom
ZoomifyViewer.resetView
ZoomifyViewer.zoomIn
ZoomifyViewer.zoomOut
ZoomifyViewer.panLeft
ZoomifyViewer.panRight
ZoomifyViewer.panUp
ZoomifyViewer.panDown
ZoomifyViewer.panStop