|
CImageView:SetCursorExtent
The SetCursorExtent method sets the extent
of the image cursor in the CImageView. This differs from
SetCursorRect in the argument list.
Syntax
|
bResult = CImageView:SetCursorExtent( xmin, xmax,
ymin, ymax )
|
Thexmin,
xmax, ymin,
andymax values specify the cursor
bounds, measured in pixel coordinates.
On success,
the method returns
true.
On failure,
false is returned.
Example
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 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:
|
V:SetCursorExtent(50,150,100,300)
|
|
|
R = V:GetCursorRect()
|
|
|
Printf("W=%lg, H=%lg",
R:Size())
|
|
Related Topics
CImageView
CRect class
GetCursorRect
SetCursorRect
SetCursorWidth
SetCursorHeight
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|