VintaSoft Imaging .NET SDK 15.2: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebImageViewerJS type / transformPointFromControlToScreen Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
transformPointFromControlToScreen Method
In This Topic
Transforms point from the coordinate space of visible area of the image viewer to the browser (screen) coordinate space.
Syntax
var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);

var value; // Type: object

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

value = instance.transformPointFromControlToScreen(x, y);

Parameters

x
X coordinate in coordinate space of visible area of the image viewer.
y
Y coordinate in coordinate space of visible area of the image viewer.

Return Value

Point in the browser (screen) coordinate space.
Exceptions
ExceptionDescription
Thrown if arguments have wrong types.
Remarks

The center of coordinate space of visible area of the image viewer is the left-top point of visible area of the image viewer.

Browser Compatibility
56+
45+
11
See Also