CImageView:SetCursorPos
The SetCursorPos method sets the center position of the image cursor in the CImageView.
CImageView:SetCursorPos( x, y ) |
Mira defines image coordinates for each axis as having pixel 1.0 located at the center of the first pixel. Thus, specifying the cursor position with x = 2.0 centers the image cursor in the middle of column 2.
Assume that a CImageView object named V exists. The following script fragment sets the image cursor to the center of the current image:
|
-- Get a CImage for the current displayed image |
|
-- x, y refer to the center of the image |
|
|
|
-- move the image cursor to the image center |
CImageView, SetCursorPosWcs, GetCursorPos, Image Coordinate System, Subpixel Coordinate Definition