CImageView:GetCursorPos
The GetCursorPos method returns the center position of the image cursor for the current image in the CImageView. This function returns pixel coordinates. If the current image has a World Coordinate Calibration ("WCS"), then the pixel coordinates may be converted to world coordinates using CImage:XyToWcs or CImage:XyToWcsStr.
x, y, bSuccess = CImageView:GetCursorPos() |
This returns x, y in pixel coordinates, and a boolean success flag bSuccess.
On success, this method returns x, y, true.
On failure, this method returns 0, 0, false.
CImageView, SetCursorPos, Image Coordinate System, Subpixel Coordinate Definition
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.