Leadtools.Controls Namespace > ImageViewer Object : ZoomToRect Method |
function Leadtools.Controls.ImageViewer.zoomToRect( rect )
Parameter | Type | Description |
---|---|---|
rect | LeadRectD | The rectangle in control coordinates. |
The control will use Zoom and change ScrollOffset (and optionally, the scrollbars) according to the value passed. Therefore, this method will follow the same rules governing the minimum and maximum values of ScrollOffset.
ImageViewerZoomToInteractiveMode uses this method to perform its action.