| ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI_namespace > ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI.PageView : transformWindowPointToPage Method |
| ASP.NET Ajax Javascript (Specification) | |
|---|---|
function transformWindowPointToPage( windowPoint : Point, constrainResultToImage : Boolean ) : Point; | |
| ASP.NET Ajax Javascript (Usage) | |
|---|---|
var resultVar = instanceOfPageView.transformWindowPointToPage(Point,Boolean); | |
true, this function will constain the resulting point to lie within the bounds of the image.true.This function will transform the location of a point on the viewer window to image coordinates. If the viewer does not have an image open, this function will return a point with the x and y values set to 0.
You can constrain the resulting point to the nearest point that lies within the bounds of the image by setting the constrainResultToImage parameter to true, otherwise the result may lie outside the image bounds..
ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI.PageView
PageView Members