CImageView:SetCursorExtent
The SetCursorExtent method sets the extent of the image cursor in the CImageView. This differs from SetCursorRect in the argument list.
bResult = CImageView:SetCursorExtent( xmin, xmax, ymin, ymax ) |
Assume that a CImageView object named V exists and refers to an image window. The following script fragment sets the image cursor to an x-range of 50:150 and a y-range of 100:300. Notice that both values returned by R:Size() can be printed since it is the last parameter in the Printf argument list:
|
-- set the image cursor |
|
-- fetch the image cursor rectangle |
|
-- Result: W=100, H=200 |
CImageView , GetCursorRect , SetCursorRect , SetCursorWidth , SetCursorHeight