CImageView:SetCursorHeight
The SetCursorHeight method sets the y range, or height, of the image cursor in the CImageView. This sets the number of rows, measured in pixels. The center position is not affected.
bResult = CImageView:SetCursorHeight( nHeight ) |
ThenHeight value specifies the cursor height, measured in pixels.
On success, the method returns true.
On failure, false is returned.
Assume that a CImageView object named V exists and refers to an image window. The following script sets the image cursor to a height of 50 pixels. Note that the center position is unchanged:
|
-- set the image cursor height |
|
-- return the cursor rectangle as a CRect |
|
-- Result: [100:800, 175:225] |
CImageView , CRect class, GetCursorRect , SetCursorRect , SetCursorExtent , SetCursorWidth
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.