CImageView:SetCursorPosWcs CImageView:SetCursorStyle

CImageView:SetCursorRect


The SetCursorRect method sets the extent of the image cursor in the CImageView.

Syntax

CImageView:SetCursorRect( CRect )

Remarks

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.

Example

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 100:200 and a y-range of 300:500:

 

R = CRect:new()

-- create a CRect object

R:Set(100,200,300,500)

-- specify the dimension

V:SetCursorRect(R)

-- set the image cursor

Related Topics

CImageView, GetCursorRect, CRect, Image Coordinate System, Subpixel Coordinate Definition