1. PCX & GIF loader
- Posted by Michael Bolin <michaeltom at GEOCITIES.COM>
Apr 03, 1997
-
Last edited Apr 04, 1997
* 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
<='1E+&EM86=E?0T*96YD(&9U;F-T:6]N#0H-"B!R
end
2. PCX & GIF loader
- Posted by Michael Bolin <michaeltom at GEOCITIES.COM>
Apr 03, 1997
-
Last edited Apr 04, 1997
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).
Regards,
Michael Bolin
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
en
> 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
ll
> 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:
all_palette(image[1]/4)
which Robert Craig forgot to do. :)
Regards,
Michael Bolin