home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12542 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.0 KB

  1. Path: sparky!uunet!hela.iti.org!ais.org!roofus!empath
  2. Message-ID: <765372d7418973t27@roofus.ann-arbor.mi.us>
  3. Date: Thursday, 28 January 1993 20:32:15 EST
  4. X-Mailer: TMail version 1.14R
  5. From: "Tim Triemstra" <empath@ais.org>
  6. Organization: Empath Software
  7. References: <1993Jan28.031932.20214@sbcs.sunysb.edu>
  8. Subject: Re: Wanted - PCX Compression algorithm (non 24-bit)
  9. Newsgroups: comp.os.msdos.programmer
  10. Distribution: world
  11. Lines: 32
  12.  
  13. In <1993Jan28.031932.20214@sbcs.sunysb.edu>, ejohnfel@libws4.ic.sunysb.edu () wrote:
  14.    >    OK, I gots myself a teeny problem. I had a book, which had the
  15.    >algo. The I had to register, needless to say I had to return the book. Then
  16.    >I bought a book, almost the same type except its PCX compression algo was
  17.    >for 24-bit only :(
  18.    >
  19.    >    All I need is a quik overview of the algo, and the run and string
  20.    >codes (the actual flag values, ie 0xff or 0xc5 etc.....)
  21.  
  22. If you still have the book with the 24bit version, the only difference 
  23. between the 24bit version of PCX files and regular 8bit (256 color) files
  24. is that 24bit files are 3 8bit planes of each of the R,G and B values.  So,
  25. you'd read in the palette (the last 768 bytes of the 256 color image) then
  26. grab the header (should be the same for a 24bit image, just expect 1 plane,
  27. not the 3 for a 24bit file) and decode the image.  The rest of the 
  28. compression is the same I believe.
  29.  
  30. If this isn't a help, I have both Bit-Mapped Graphics and Supercharged
  31. Bit-Mapped Graphics by Rimmer.  I can get a real file put together for you.
  32.  
  33. I also have the ZSoft specs sheet lying around the other machine.  Let me
  34. know if you need more.  I've written a few different PCX viewers in alot of
  35. languages so I could probably help (although I haven't done much with 24bit
  36. files yet.)
  37.  
  38. Tim.
  39.  
  40. -------------------------------------------------------
  41. | When the end comes, there will be two men standing: |
  42. |   Me, and the guy I gotta kill.   - Gosh I'm EVIL   |
  43. ------ Tim Triemstra ------------- empath@ais.org -----
  44.