home *** CD-ROM | disk | FTP | other *** search
/ Hand Held Organizer Toolkit / walnutcreekcdrom-handheldorganizertoolkit-march1998.iso / PalmPilot / development / ppmtotbmp_tar.gz / ppmtotbmp_tar / ppmtoTbmp-1.1 / README < prev    next >
Text File  |  1997-06-25  |  1KB  |  28 lines

  1. This is version 1.0 of ppmtoTbmp, a ppm to Pilot bitmap converter.
  2.  
  3. To compile it, you'll need the netpbm package.  Last I checked, it was
  4. available at "ftp://ftp.x.org/contrib/utilities/netpbm-1mar1994.p1.tar.gz".
  5. Change the Makefile to point to the directory that contains the netpbm
  6. header files, and make.
  7.  
  8. Usage: ppmtoTbmp [-2bit] [file.ppm]
  9.  
  10. If the ppm file is not specified, one is read from stdin.  The -2bit option
  11. produces a 2-bit bitmap instead of the normal 1-bit bitmap.  The ppm must
  12. have at most 4 colours in it (for 2-bit) or at most 2 colours (for 1-bit).
  13. Common invokations might be:
  14.  
  15. xbmtopbm icon.xbm | ppmquant -fs -map q2.map | ppmtoTbmp > tAIB03e8.bin
  16. giftopnm image.gif | ppmquant -fs -map q4.map | ppmtoTbmp -2bit > Tbmp0bb8.bin
  17.  
  18. (q2.map and q4.map are trivial 2 and 4 colour maps, respectively, and are
  19. included in this distribution.)
  20.  
  21. To include the resulting bitmap in a .prc file, just name the output
  22. tAIB03e8.bin (for an application icon) or Tbmpxxxx.bin (for a form bitmap,
  23. where xxxx is replaced by four hex digits giving the bitmap ID).
  24.  
  25. I'll probably make Tbmptopnm later, and put it in the 1.1 release.
  26.  
  27.    - Ian Goldberg <iang@cs.berkeley.edu>
  28.