Print the current visualization window on a network printer.
Synopsis:
printwin
printwin
option=value [,option=value, ...]
Arguments:
option
An option for printing 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.
|
on
|
command
|
UNIX command
|
Use this field to specify a printer command, like
lp
or
lpr
. You can also modify this to add other printer options as long as the -P option remains the last on the line.
|
lpr -P
|
printer
|
printer name
|
The name of the printer to send the image to for printing.
|
colorps
|
tiled
|
on, off
|
A flag indicating whether or not to print all open graphics windows as a single image.
|
off
|
type
|
ps, vps
|
The type of the printer the image is being sent to for printing.
ps
-- Raster PostScript
TM
vps
-- Vector PostScript
TM
, 2D plots only
|
ps
|
xres
|
positive integer
|
The resolution in the X direction. Only used when
capture
is off, and only applies to the
ps
format. 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 the
ps
format. If you specify
yres
, you must also specify
xres
, and the two numbers should be equal to each other.
|
1024
|
Description:
The
printwin
command without any options prints the contents of the current visualization window to the network printer. With options, the
printwin
command sets parameters for future window prints,
but does not actually print the window
.
The
ps
format corresponds to a raster image imbedded in a PostScript
TM
file and is resolution dependent. The
vps
format contains lines a polygons in a PostScript
TM
file and is resolution independent. Images with 3D graphics cannot be rendered using the
vps
format. When MeshTV detects a situation where the vps format cannot properly contain the image it will automatically switch to the
ps
format.
Note that 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 and then issue the
printwin
command, you will see the second window in your printed image. The default for
capture
is
on
, because this is the quickest way to get the picture. If the capture flag is off, the picture is generated internally at 24 bits at the specified resolution.
Examples:
printwin printer=color6
printwin tiled=on, printer=mycolor
printwin
See Also:
savewin