transformPointFromViewerToImage Method
In This Topic
Transforms point from the coordinate space of client area of the image viewer to the image 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.transformPointFromViewerToImage(x, y);
function transformPointFromViewerToImage(
: number,
: number
) : object;
Parameters
- x
- X coordinate in coordinate space of client area of the image viewer.
- y
- Y coordinate in coordinate space of client area of the image viewer.
Return Value
Point in image coordinate space.
Exceptions
| Exception | Description |
| Thrown if arguments have wrong types. |
| Thrown if viewer does not have image. |
Browser Compatibility
See Also