VintaSoft Imaging .NET SDK 15.2: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebImageViewerJS type / transformPointFromImageToViewer Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
transformPointFromImageToViewer Method
In This Topic
Transforms point from the image coordinate space to the coordinate space of client 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.transformPointFromImageToViewer(x, y);

Parameters

x
X coordinate in image coordinate space.
y
Y coordinate in image coordinate space.

Return Value

Point in coordinate space of client area of the image viewer.
Exceptions
ExceptionDescription
Thrown if arguments have wrong types.
Thrown if viewer does not have image.
Browser Compatibility
56+
45+
11
See Also