VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Annotation.Html5 Namespace / WebAnnotationViewerJS type / transformPointFromControlToImage Method
X coordinate in coordinate space of image viewer.
Y coordinate in coordinate space of image viewer.
In This Topic
    transformPointFromControlToImage Method
    In This Topic
    Transforms point from coordinate space of image viewer to an image 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.transformPointFromControlToImage(x, y);
    function transformPointFromControlToImage( 
       x : number,
       y : number
    ) : object;

    Parameters

    x
    X coordinate in coordinate space of image viewer.
    y
    Y coordinate in coordinate space of image viewer.

    Return Value

    Point in image coordinate space.
    Browser Compatibility
    9
    5
    15
    5
    See Also