Declaration: SetImageCursor (PosX, PosY: double; Mode, MeanRange: integer): integer;
The method SetImageCursor sets the image cursor of the 2D imager to the specified position [posX,posY]. The parameter Mode determines which kind of cursor will be displayed:

0 Cursor Data Display
0 crosshair normal spectral display
1 horizontal line through PosY intensities along the cursor line
2 vertical line through PosX intensities along the cursor line
3 crosshair with circular range the mean spectrum of all pixels within the circle; the parameter MeanRange controls the size of the circle (in pixels1)

The function returns the following error codes:

 0 ... everything OK
-1 ... the specified cursor position is located outside the HSI image
-2 ... the Mode parameter is invalid
-3 ... invalid MeanRange parameter (valid range is between 1 and 100)

1 Use the function UnitSize to obtain the size of a pixel in world coordinates.

Last Update: 2017-Sep-22