VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Annotation.Html5 Namespace / WebAnnotationViewerJS type / transformPointFromControlToScreen Method
X coordinate in coordinate space of visible area of the image viewer.
Y coordinate in coordinate space of visible area of the image viewer.
In This Topic
    transformPointFromControlToScreen Method
    In This Topic
    Transforms point from the coordinate space of visible area of the image viewer to the browser (screen) coordinate space.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.Html5.WebAnnotationViewerJS(controlId);
    var value; // Type: object
    
    // Parameters
    var x; // Type:  number
    var y; // Type:  number
    
    value = instance.transformPointFromControlToScreen(x, y);
    function transformPointFromControlToScreen( 
       x : number,
       y : 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 the browser (screen) coordinate space.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Remarks
    The center of coordinate space of visible area of the image viewer is the left-top point of visible area of the image viewer.
    Browser Compatibility
    9
    5
    15
    5
    See Also