CImageView:SetCursorRect
The SetCursorRect method sets the extent of the image cursor in the CImageView.
CImageView:SetCursorRect( CRect ) |
TheCRect argument contains the xmin , xmax,ymin, and ymax values of the cursor, measured in pixel coordinates.
All 4 values cursor limits, including xmin, xmax, ymin, and ymax are set by this method. Before calling this method, set the limits of the rectangle using CRect member functions such as Set or SetXmin.
Assume that a CImageView object named V exists and refers to an image window. The following script sets the image cursor to an x-range of 100:200 and a y-range of 300:500:
|
-- create a CRect object with coordinates |
|
-- set the image cursor |
CImageView, GetCursorRect, CRect class, Image Coordinate System, Subpixel Coordinate Definition
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.