ZWINDOW Name
ZWINDOW Purpose
Z buffer window like normal x window.
Category
Calling Sequence
zwindow Inputs
Keyword Parameters
Keywords
XSIZE=xs X size of window (def=!d.x_size).
YSIZE=ys Y size of window (def=!d.y_size).
N_COLORS=n Number of colors to use (def=!d.table_size).
/BITS8 Set for 8-bit color, else 24-bit color.
/CLOSE Terminate z window and restore previous window.
Must close a zwindow first to resize it.
/COPY Copy z window to visible window.
/FREE Force copy to use a new window.
/LIST List zwindow status.
/GET Get image and color table:
IMAGE=img, RED=r, GRN=g, BLU=b.
Outputs
Common Blocks
zwindow_com Notes
Notes: Easy 8 bit graphics on a 24 bit display.
Set up z window, then graphics commands use it.
Can read back image and color table with tvrd, tvlct,/get.
Use /copy to display results, /close when done.
WARNING: text and symbol sizes in normal graphics
windows are 3/4 the size in the Z-buffer.
Modification History
R. Sterner, 2000 Mar 28
R. Sterner, 2000 Apr 17 --- removed the close on /COPY.
R. Sterner, 2000 May 07 --- Fixed an entry device bug.
R. Sterner, 2000 May 22 --- Will resize X window on /copy if needed.
R. Sterner, 2001 Jan 29 --- Added /GET,IMAGE=img,R=r,G=g,B=b
R. Sterner, 2001 Mar 28 --- Added /FREE for /COPY.
R. Sterner, 2001 Dec 26 --- Trying to get to work without X.
R. Sterner, 2002 Jun 25 --- Trying again to get to work without X.
R. Sterner, 2009 May 21 --- Added 24-bit color and made default.
R. Sterner, 2011 May 04 --- Checked if previous was Z if /COPY.
R. Sterner, 2011 May 17 --- Should now be able to change window size.
R. Sterner, 2011 May 17 --- Upgraded /LIST and changed to /STATUS.
Copyright (C) 2000, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.