VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebImageViewerJS type / transformPointFromControlToViewer Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    transformPointFromControlToViewer Method
    In This Topic
    Transforms point from the coordinate space of visible area of the image viewer to the coordinate space of client area of the image viewer.
    Syntax
    var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);
    
    var value; // Type: object
    
    // Parameters
    var x; // Type: number
    var y; // Type: number
    
    value = instance.transformPointFromControlToViewer(x, y);
    
    
    function transformPointFromControlToViewer(
    x
    X coordinate in coordinate space of visible area of the image viewer.
    : number,
    y
    Y coordinate in coordinate space of visible area of the image viewer.
    : number
    ) : object;

    Parameters

    x
    X coordinate in coordinate space of visible area of the image viewer.
    y
    Y coordinate in coordinate space of visible area of the image viewer.

    Return Value

    Point in coordinate space of client area of the image viewer.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Browser Compatibility
    56+
    45+
    11
    See Also