setAreaZoom(Boolean)

Sets whether the zoom-area mode is initiated.

If you call this method with its parameter's value set to true, the zoom-area mode is initiated. The mouse pointer changes to a cross. You can right-click and drag the pointer to select the area for zooming. When you release the mouse button, the area that is selected is zoomed as large as possible while the image aspect is maintained within the available window area.

If the selected area is not greater than the zoom trigger size, 20 by 20 pixels, zooming does not occur. You can release the mouse button if the mode was initiated accidentally.

If you call this method with its parameter's value set to false, the mouse returns to drag mode to pan the image.

Sample syntax

ViewONE.setAreaZoom(true);