VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Annotation.Svg Namespace / WebAnnotationViewerJS type / transformPointFromDipToControl Method
X coordinate in the device-independent pixels (1/96th inch).
Y coordinate in the device-independent pixels (1/96th inch).
In This Topic
    transformPointFromDipToControl Method
    In This Topic
    Transforms point from the device-independent pixels (1/96th inch) to the viewer coordinate space.
    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.transformPointFromDipToControl(x, y);
    function transformPointFromDipToControl( 
       x : number,
       y : 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 coordinate space of image viewer.
    Browser Compatibility
    9
    5
    15
    5
    See Also