VintaSoft Imaging .NET SDK v8.5
transformPointFromControlToImage Method
Vintasoft.Imaging.Html5 Namespace > WebImageViewerJS type : transformPointFromControlToImage 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 an image coordinate space.
Syntax
var instance = new Vintasoft.Imaging.Html5.WebImageViewerJS(controlId);
var value; // Type: object

// Parameters
var x; // Type:  number
var y; // Type:  number

value = instance.transformPointFromControlToImage(x, y);
function transformPointFromControlToImage( 
   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 image coordinate space.
Browser Compatibility
9
5
11
5
See Also

Reference

WebImageViewerJS type