VintaSoft Imaging .NET SDK v8.5
transformPointFromDipToControl Method
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).
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
11
5
See Also

Reference

WebAnnotationViewerJS type