CImageView:SetCursorWidth
The SetCursorWidth method sets the x range, or width, of the image cursor in the CImageView. This sets the number of columns, measured in pixels. The center position is not affected.
bSuccess = CImageView:SetCursorWidth( nWidth ) where |
nWidth is the cursor width, measured in pixels.
bSuccess is the returned success code. On success it is true, otherwise false.
Assume that a CImageView object named V exists and refers to an image window. The following script sets the image cursor to a width of 100 pixels. Note that the center position is unchanged:
|
-- set a cursor size |
|
-- set the image cursor |
|
-- Result: [400:500, 150:620.5] |