VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Annotation.Svg Namespace / WebAnnotationViewerJS type / transformPointFromImageToControl Method
X coordinate in image coordinate space.
Y coordinate in image coordinate space.
In This Topic
    transformPointFromImageToControl Method
    In This Topic
    Transforms point from image coordinate space to coordinate space of image viewer.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.Svg.WebAnnotationViewerJS(controlId);
    var value; // Type: object
    
    // Parameters
    var x; // Type:  number
    var y; // Type:  number
    
    value = instance.transformPointFromImageToControl(x, y);
    function transformPointFromImageToControl( 
       x : number,
       y : number
    ) : object;

    Parameters

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

    Return Value

    Point in coordinate space of image viewer.
    Browser Compatibility
    9
    5
    11
    5
    See Also