SUNIMP
Section: User Commands (1)
Updated: local
Index
Return to Main Contents
NAME
sunimp - convert Sun rasterfile bitmap to Imagen Impress
SYNOPSIS
sunimp
<rasterfile
>Impressfile
DESCRIPTION
Sunimp
is a filter which converts the bitmaps created by
screendump(1)
to Impress commands suitable for an Imagen printer.
Sunimp
reads the rasterfile (described in
rasterfile.h
) from standard input, and writes Impress (complete with the Document
Contol String) to standard output. There are no flags.
Sunimp
reads the rasterfile header and adjusts to the size of the bitmap.
The Impress SET_MAGNIFICATION command is used for a 2x
blowup of the bitmap.
A status of 1 is returned if the input file header is bad
or the input file is too short. A 0 is returned otherwise.
EXAMPLES
To print a Sun screen to a Imagen, use this pipe:
% screendump | sunimp | lpr -v
To print out a screen without a command line visible on the print,
telnet in from another machine and run one of the above commands.
CAVEATS
Large bitmaps take a lot of memory on the Imagen Printer. A 3/4 Meg
Imagen with TCP/IP/Ethernet has about 350K free memory. Bitmaps larger
than avaliable Imagen memory will print an error message, but no bitmap.
Sunimp
is not very portable. More precisely, the rasterfile header is affected
by byte-order (contains binary integers), and connot be moved between
arbitrary machines. The Impress file is defined as a byte-stream and
does not have this problem.
FILES
None.
ENVIRONMENT
USER is read for Imagen jobheader.
SEE ALSO
lpr(1), screendump(1), rasterfile(5)
Imprint-10 Programmer's Manual, Imagen Corp.
AUTHOR
Walter Underwood, Ford Aerospace, based on macimp
by Ed Patterman, Stanford. Modified by Van Jacobson, Lawrence
Berkeley Laboratory, to work on Sun-3 and to handle color dumps
(i.e., from Sun-3/160).
DIAGNOSTICS
Non-fatal diagnostics:
Warning: bad magic number in rasterfile. ras_magic= %d
Warning: raster is not type zero. ras_type= %d
Fatal diagnostics:
Cannot alloc enough space for conversion array.
Rasterfile is not raw bits. ras_encoding= %d
Sorry, can only handle 1 or 8 bits per pixel. ras_depth= %d
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- EXAMPLES
-
- CAVEATS
-
- FILES
-
- ENVIRONMENT
-
- SEE ALSO
-
- AUTHOR
-
- DIAGNOSTICS
-
This document was created by
man2html,
using the manual pages.
Time: 00:31:42 GMT, January 04, 2023