zoomToRect Method

Summary

Zooms the view to the specified rectangle.

Syntax
TypeScript
JavaScript
ImageViewer.prototype.zoomToRect = function( 
   rect 
) 
zoomToRect( 
   rect: LeadRectD 
): void; 

Parameters

rect

The rectangle in control coordinates.

Remarks

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.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.