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 : transformPagePointToWindow Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function transformPagePointToWindow( imagePoint : Point, constrainResultToWindow : Boolean ) : Point; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfPageView.transformPagePointToWindow(Point,Boolean); |
true
, this function will constain the resulting point to lie within the bounds of the viewer.true
.This function will transform the location of a point on the image to window 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 viewer by setting the constrainResultToWindow parameter to true
, otherwise the result may lie outside the viewer bounds..
ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI.PageView
PageView Members