VintaSoft Imaging .NET SDK v8.5
transformPointFromImageToControl Method
Vintasoft.Imaging.Annotation.Html5 Namespace > WebAnnotationViewerJS type : transformPointFromImageToControl Method
X coordinate in image coordinate space.
Y coordinate in image coordinate space.
Transforms point from image coordinate space to coordinate space of image viewer.
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.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

Reference

WebAnnotationViewerJS type