rob@selenium.cchem.berkeley.edu (Robert Oyung) (06/02/88)
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 ---------------------------------------------------------------------------- Robert Oyung rob@selenium.cchem.berkeley.edu 27 Longview Court
dkovar@bbn.com (David C. Kovar) (06/02/88)
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