Standard Library procedure that displays the x, y, and pixel values at the location of thecursor in the image displayed in the currently active window.
x0 The x-coordinate of the lower-left corner of the image displayed in the currently active window.
y0 The y-coordinate of the lower-left corner of the image displayed in the currently active window.
OPENR, lun, !Data_dir + 'mandril.img', /Get_lun mandril_img = BYTARR(512, 512) READU, lun, mandril
TV, mandril_img
RDPIX, mandril_img
TV, mandril_img, 100, 100
RDPIX, mandril_img, 100, 100