ZoomifyViewer.setView(x,y,zoom)

Availability

Flash Player 6.

Usage

ZoomifyViewerInstance.setView(x,y,zoom);

Parameters

x - new x of the image.

y - new y of the image.

zoom - new zoom of the image.

Returns

Nothing

Description

Sets x, y, and zoom coordinates for the current view. The values x and y will be between -1 (left edge of image) and 1 (right edge of image). The zoom value is used to specify the magnification of the image where 100 means 100% magnification. This representation is 'resolution independent.' These values can be obtained for any view by calling getX and getY, or by using the Initial View fields in the ZoomifyViewer Component Inspector. Special case: setting zoom to -1 fits the image exactly within the display area. Calls to setView should be followed by a call to updateView in order to cause the ZoomifyViewer component to draw the new view.

Example

ZoomifyViewerInstance.setView(0,0,-1);
ZoomifyViewerInstance.updateView();

See also

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