VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebImageViewerJS type / zoomToRectangle Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    zoomToRectangle Method
    In This Topic
    Zooms the viewer to the specified rectangle of current image.
    Syntax
    var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);
    
    var value; // Type: any
    
    // Parameters
    var destRect; // Type: object
    
    value = instance.zoomToRectangle(destRect);
    
    
    function zoomToRectangle(
    destRect
    The destination rectangle in image space.
    : object
    ) : any;

    Parameters

    destRect
    The destination rectangle in image space.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Browser Compatibility
    56+
    45+
    11
    See Also