CImageView:GetCursorRect

CImageView:GetCursorPos


The GetCursorPos method returns the center position of the image cursor in the CImageView. This function returns pixel coordinates.

Syntax

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.

Related Topics

CImageView, SetCursorPos, Image Coordinate System, Subpixel Coordinate Definition