Transforms an image coordinate to a window coordinate.
Syntax
ASP.NET Ajax Javascript (Specification) | |
---|
function transformPagePointToWindow(
: Point,
: Boolean
) : Point; |
ASP.NET Ajax Javascript (Usage) | |
---|
var resultVar = instanceOfPageView.transformPagePointToWindow(Point,Boolean); |
Parameters
- imagePoint
-
The image point to transform into window coordinates.
The units for the point must be pixels, with the origin at the top left corner of the image, and with positive values extending right (x) and down (y).
You may provide this function with a point that lies outside the bounds of the image and it will operate as expected.
- constrainResultToWindow
- If you provide this parameter, and set it to
true
, this function will constain the resulting point to lie within the bounds of the viewer.
Return Value
The window point that lies in the same location as the given image point or (0, 0) if the viewer does not have an image open. Note that this point may lie outside the bounds of the actual viewer if you do not set constrainResultToWindow to true
.
See Also