1. PCX & GIF loader

* This message contains the file 'pic_load.e', which has been
 * uuencoded. If you are using Pegasus Mail, then you can use
 * the browser's eXtract function to lift the original contents
 * out to a file, otherwise you will have to extract the message
 * and uudecode it manually.

begin 660 pic_load.e


new topic     » topic index » view message » categorize

2. PCX & GIF loader

Here are two routines I've just finished writing:
They're a PCX and a GIF loader. They work exactly the same way as
read_bitmap(), and return the same format or error codes.
If you get any errors using these, send me the EX.ERR file, and the
picture too. (if it's a reasonable size).

               Michael Bolin

new topic     » goto parent     » topic index » view message » categorize

3. Re: PCX & GIF loader

> Well, I havent received an error using your routine, but noticed a small bug
> when loading a 640X480, 256 color PCX file.  Your loader decoded and
> displayed the file correctly, but the palette was mixed up.  (Have you ever se
> bright red trees on purple grass, with blue clouds in a purple sky?).  Anyway,
> I'm attaching the pcx file, so let me know if it displays in the same wierd
> colors
> for you.  Also, I'm using the Test.ex file provided by Robert Craig, but
> with the
> line <s = load_gif("title.gif")> changed to <s = load_pcx("tutorial.pcx")>.  A
> other lines are the same.
> James Powell

Actually, the bug isn't in my routine. It's in the Test.ex file
Robert Craig wrote.

The RGB palette values range from 0-255, just like read_bitmap(),
but the all_palette() command expects them to range from 0 to 63,
so you must use a line like this:


which Robert Craig forgot to do. :)

               Michael Bolin

new topic     » goto parent     » topic index » view message » categorize


Quick Links

User menu

Not signed in.

Misc Menu