The RDPIX procedure interactively displays the X position, Y position, and pixel value at the cursor.
This routine is written in the IDL language. Its source code can be found in the file rdpix.pro in the lib subdirectory of the IDL distribution.
Using RDPIX
RDPIX displays a stream of X, Y, and pixel values when the mouse cursor is moved over a graphics window. Press the left or center mouse button to create a new line of output. Press the right mouse button to exit the procedure.
Syntax
RDPIX, Image [, X0, Y0]
Arguments
Image
The array that contains the image being displayed. This array may be of any type. Rather than reading pixel values from the display, values are taken from this parameter, avoiding scaling difficulties.
X0, Y0
The location of the lower-left corner of the image area on screen. If these parameters are not supplied, they are assumed to be zero.
Keywords
None.
Version History
See Also
CURSOR, TVRD