VintaSoft Imaging .NET SDK 12.4: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationViewerJS type / transformPointFromDipToViewer Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    transformPointFromDipToViewer Method
    In This Topic
    Transforms point from the device-independent pixels (1/96th inch) to the coordinate space of client area of the image viewer.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationViewerJS(controlId);
    
    var value; // Type: object
    
    // Parameters
    var x; // Type: number
    var y; // Type: number
    
    value = instance.transformPointFromDipToViewer(x, y);
    
    
    function transformPointFromDipToViewer(
    x
    X coordinate in the device-independent pixels (1/96th inch).
    : number,
    y
    Y coordinate in the device-independent pixels (1/96th inch).
    : number
    ) : object;

    Parameters

    x
    X coordinate in the device-independent pixels (1/96th inch).
    y
    Y coordinate in the device-independent pixels (1/96th inch).

    Return Value

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