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