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