VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationViewerJS type / transformPointFromViewerToDip Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
transformPointFromViewerToDip Method
In This Topic
Transforms point from coordinate space of client area of the image viewer to the device-independent pixels (1/96th inch).
Syntax
var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationViewerJS(controlId);

var value; // Type: object

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

value = instance.transformPointFromViewerToDip(x, y);

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 the device-independent pixels (1/96th inch).
Exceptions
ExceptionDescription
Thrown if arguments have wrong types.
Thrown if viewer does not have image.
Browser Compatibility
56+
45+
11
See Also