getImageIndexByLocation Method
Returns the image index by location.
var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);
var value; // Type: number
// Parameters
var location; // Type: object
value = instance.getImageIndexByLocation(location);
function getImageIndexByLocation(
: object
) : number;
Parameters
- location
- The point in the coordinate space of client area of image viewer.
Return Value
Image index if point is located on image; otherwise, -1.