CImageView:GetCursorRect

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.

Syntax

x, y, bSuccess = CImageView:GetCursorPos()

bullet.gif    This returns x, y in pixel coordinates, and a boolean success flag bSuccess.

bullet.gif    On success, this method returns x, y, true.

bullet.gif    On failure, this method returns 0, 0, false.

Related Topics

CImageView, SetCursorPos, Image Coordinate System, Subpixel Coordinate Definition

 

Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.