|IDL Reference Guide: Procedures and Functions|
The ZOOM_24 procedure displays part of a 24-bit color image from the current window expanded in a new ("zoom") window, and provides information about cursor location and color values in an auxiliary ("data") window. The cursor is used to mark the center of the zoom area, and different zoom factors can be specified interactively.
ZOOM only works on 24-bit color systems.
This routine is written in the IDL language. Its source code can be found in the file
zoom_24.pro in the
lib subdirectory of the IDL distribution.
After calling ZOOM_24, windows titled "Zoomed Image" (the zoom window) and "Pixel Values" (the data window) appear on the screen. Place the mouse cursor over a 24-bit color image in an IDL graphics window and click the left mouse button to display a magnified version of the image in the zoom window. The zoomed image is centered around the pixel selected in the original window. Move the mouse cursor in the zoom window to determine the coordinates (in the original image) and color values of individual pixels.
With the cursor located in the zoom window, click the right mouse button to return to selection mode, which allows you to either choose a new zoom center, change the zoom factor, or exit the procedure. Move the cursor to the original image and click the middle mouse button to display a menu of zoom factors, or click the right mouse button to exit the procedure.
Note that the ZOOM_24 procedure is only for use with IDL graphics windows. It should not be used with draw widgets. To obtain a zooming effect in a draw widget, use the CW_ZOOM function.
ZOOM_24 [, FACT=integer] [, /RIGHT] [, XSIZE=value] [, YSIZE=value]
Use this keyword to specify the zoom factor, which must be an integer. The default zoom factor is 4.
Set this keyword to position the zoom and data windows to the right of the original window.
Use this keyword to specify the X size of the zoom window. The default is 512.
Use this keyword to specify the Y size of the zoom window. The default is 512.
IDL Online Help (March 06, 2007)