Article View: comp.lang.postscript
Article #7219Re: Bitmap printing
From: David C. Kovar
Date: Thu, 02 Jun 1988 13:50
Date: Thu, 02 Jun 1988 13:50
77 lines
3548 bytes
3548 bytes
In article <3741@pasteur.Berkeley.Edu> rob@selenium.cchem.berkeley.edu (Robert Oyung) writes:
>
>Just a simple question: how can I send a bitmap image to a postscript
>printer for output? The bitmaps are in the standard format of a few
>lines of C code and then hex data. Any help would be much appreciated.
>
>Rob
The Portable Bitmap Toolkit is available from expo.lcs.mit.edu. It
should solve your problem and a few others .... Here is the README
file for it:
----------
Portable Bitmap Toolkit
Distribution of 28mar88
Previous distribution 06mar88
Included are a number of programs for converting various bitmap formats
to and from a portable format; plus some tools for manipulating the
portable bitmaps.
Files in this distribution:
README this
FORMATS descriptions of the various bitmap formats
Makefile guess
cbmtopbm.c convert from compact bitmap to portable bitmap
icontopbm.c convert from Sun icon to portable bitmap
macptopbm.c convert from Macintosh MacPaint to portable bitmap
rasttopbm.c convert from Sun raster to portable bitmap
xbmtopbm.c convert from X10 or X11 bitmap to portable bitmap
xwdtopbm.c convert from X11 window dump file to portable bitmap
xxxtopbm.c convert from UNKNOWN BITMAP to portable bitmap
pbmtocbm.c convert from portable bitmap to compact bitmap
pbmtoicon.c convert from portable bitmap to Sun icon
pbmtorast.c convert from portable bitmap to Sun raster
pbmtoxbm.c convert from portable bitmap to X11 bitmap
pbmtox10bm.c convert from portable bitmap to X10 bitmap
pbmtops.c convert from portable bitmap to PostScript
pbmtoptx.c convert from portable bitmap to Printronix
pbmtoascii.c convert from portable bitmap to ASCII graphic form
pbminvert.c invert a portable bitmap
pbmcrop.c crop a portable bitmap
pbmcatlr.c concatenate portable bitmaps left to right
pbmcattb.c concatenate portable bitmaps top to bottom
pbmfliplr.c flip a portable bitmap left for right
pbmfliptb.c flip a portable bitmap top for bottom
pbmtrnspos.c transpose a portable bitmap x for y
pbmcut.c cut a rectangle out of a portable bitmap
pbmpaste.c paste a rectangle into a portable bitmap
pbmenlarge.c enlarge a portable bitmap N times
pbmmake.c create a blank bitmap of a specified size
libpbm.c a few utility routines
pbm.h header file for libpbm
bmaliases csh script to make aliases for converting formats
*.man manual entries for all of the tools
bit_reverse.h useful include file
Unpack the files, edit Makefile and change the options to suit,
make, and enjoy! I've tested this stuff under 4.2 BSD, 4.3 BSD,
and System V rel 2. Nevertheless, I'm sure bugs remain. Feedback
is welcome - send bug reports, enhancements, checks, money orders,
etc. to the addresses below.
Jef Poskanzer
jef@lbl-rtsg.arpa
{ucbvax, lll-crg, sun!pacbell, apple, hplabs}!well!pokey
sun!pacbell!sybase!jef
Technical Details
Message-ID:
<25291@bbn.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!ima!bbn!bbn.com!dkovarReferences:
<3741@pasteur.Berkeley.Edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!ima!bbn!bbn.com!dkovar From: dkovar@bbn.com (David C. Kovar) Newsgroups: comp.lang.postscript Subject: Re: Bitmap printing Message-ID: <25291@bbn.COM> Date: 2 Jun 88 13:50:10 GMT References: <3741@pasteur.Berkeley.Edu> Sender: news@bbn.COM Reply-To: dkovar@bbn.com (David C. Kovar) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 77