Creates two windows: 1) a scrolling image window and 2) an optional smaller window that shows a reduced view of the entire image.
parent
0 Specifies TV is used to display the data (not scaled).
NOTE: When Dsize is greater than Wsize, and scroll bars are placed on the right and at the bottom of the scrolled image window, then 12 pixels are subtracted in each direction (from the displayed image area) to allow room for the scroll bars.
Order
Position
Reduced_size
Rtitle
Title
Wsize
Background
Specifies the background color name.
Specifies the base color.
Specifies the name of the font used for text.
Specifies the foreground color name.
WAVE
prompt to display the SimageTool widget. The SimageTool widget handles its own event loop by calling WwLoop.
Destroy the SimageTool window(s) and erase it (them) from the screen.
Figure 2-159 By default, WgSimageTool displays two windows. One window displays the image at full-size, and adds scroll bars to the right and bottom for viewing other portions of the image. The other window displays the image at a reduced size (256-by-256 by default) and does not offer the option of scroll bars. Use the Noreduce keyword to suppress the reduced-size window and display only the larger window.
Figure 2-160 By default, WgSimageTool displays two windows. One window displays the image at full-size, and adds scroll bars to the right and bottom for viewing other portions of the image. The other window displays the image at a reduced size (256-by-256 by default) and does not offer the option of scroll bars. Use the Noreduce keyword to suppress the reduced-size window and display only the larger window.
parent
is defined, WgSimageTool is created as a child of parent
; otherwise, WgSimageTool runs on its own (i.e., in its own event loop).When you are finished interacting with the WgSimageTool window, close it by clicking on the
Dismiss
button.
PRO Sample_wgsimagetool, parent, tool_shell x = DIST(7000)
IF N_ELEMENTS(parent) NE 0 THEN BEGIN WgSimageTool, x, parent, tool_shell, /Do_tvscl
ENDIF ELSE BEGIN WgSimageTool, x, /Do_tvscl
ENDELSE END
For more information about how to write an application program based on WAVE Widgets, refer to Chapter 5, Using WAVE Widgets, in the PV-WAVE GUI Application Developer's Guide. For more information about how to write an application program based on the PV-WAVE Widget Toolbox, refer to Chapter 6, Using the Widget Toolbox, in the PV-WAVE GUI Application Developer's Guide.