transformPointFromScreenToControl Method
In This Topic
Transforms point from the browser (screen) coordinate space to the coordinate space of visible area of the image viewer.
Syntax
var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);
var value; // Type: object
// Parameters
var x; // Type: number
var y; // Type: number
value = instance.transformPointFromScreenToControl(x, y);
function transformPointFromScreenToControl(
: number,
: number
) : object;
Parameters
- x
- X coordinate in the browser (screen) coordinate space.
- y
- Y coordinate in the browser (screen) coordinate space.
Return Value
Point in coordinate space of visible area of the image viewer.
Exceptions
| Exception | Description |
| 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
See Also