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

Reference

WebAnnotationViewerJS type