Transforms a window coordinate to an image coordinate.
ASP.NET Ajax Javascript (Specification) | |
---|
function transformWindowPointToPage(
: Point,
: Boolean
) : Point; |
ASP.NET Ajax Javascript (Usage) | |
---|
var resultVar = instanceOfPageView.transformWindowPointToPage(Point,Boolean); |
Parameters
- windowPoint
-
The window point to transform into image coordinates.
The units for the point must be pixels, with the origin at the top left corner of the viewer, 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 viewer and it will operate as expected.
- constrainResultToImage
- If you provide this parameter, and set it to
true
, this function will constain the resulting point to lie within the bounds of the image.
Return Value
The image point that lies in the same location as the given window 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 image if you do not set constrainResultToImage to true
.