Save the current visualization window into an image file.
Synopsis:
savewin
savewin
option=value [,option=value]
Arguments:
option
An option for saving images. See table below.
value
A value associated with the matching
option
. See table below.
Option
|
Value
|
Value Meaning
|
Default Value
|
banner
|
banner string
|
This is a string to print to the top and bottom of a PostScript
TM
output file.
|
""
|
capture
|
on, off
|
Whether or not to get the image to save by doing a screen capture. Does not apply to STL files.
|
on
|
family
|
on, off
|
A flag indicating if the filenames should be familied.
|
off
|
filename
|
file name
|
The name (or rootname) of the file to save the image to. The proper extension (.ppm, .ps, .rgb, .tif) will be added onto the end of the filename.
|
meshtv
|
tiled
|
on, off
|
A flag indicating whether or not to save all open graphics windows as a single image. Does not apply to STL files.
|
off
|
type
|
ppm, ps, rgb, rps, tif, stl
|
The file format to save the image in.
ppm
ppm format
ps
PostScript
TM
, 2D plots only
rgb
SGI's rgb format
rps
Raster PostScript
TM
tif
Tiff format
stl
Stereolithography model
|
ps
|
xres
|
positive integer
|
The resolution in the X direction. Only used when
capture
is off, and only applies to
rgb
,
rps
, and
tif
formats. If you specify
xres
, you must also specify
yres
, and the two numbers should be equal to each other.
|
1024
|
yres
|
positive integer
|
The resolution in the Y direction. Only used when
capture
is off, and only applies to
rgb
,
rps
, and
tif
formats. If you specify
yres
, you must also specify
xres
, and the two numbers should be equal to each other.
|
1024
|
Description:
The
savewin
command without any options saves the contents of the current visualization window into the previously specified file. With options, the
savewin
command sets parameters for future window saves,
but does not actually save the window
.
If the capture flag is on, the picture will be "grabbed' via a screen capture. This means that if you open another window on top of your visualization window before the save is done, you will see the second window in your saved file. This is the quickest method for saving pictures, which is why it is the default.
If the family flag is on, MeshTV will automatically append a four digit number to the end of the rootname, and automatically increment the number each time a
savewin
is done.
The types of file formats supported are ppm for Portable pixel map,
ps
for PostScript
TM
,
rgb
for SGI's rgb format,
rps
for raster PostScript
TM
, and
tif
for Aldus Corporation's tiff format.
Examples:
savewin filename=mypix, type=rgb
savewin tiled=on, family=on
savewin
See Also:
printwin