Mail Archives: djgpp/1996/03/24/01:35:43
In article <314F2D88 DOT 1389 AT ice DOT stx DOT com>, beau AT ice DOT stx DOT com says...
>
>All:
>
> I have read the DJGPP FAQ and the very weird GRX20
documentation
>and I can't seem to find any mention of a routine to load a GIF onto
>the current context using DJGPP 2.0 and GRX20. If anyone has done
this
>please post their algorithm's! Using all 256 colors would be a plus
as
>well.
>
>Beau
>
It's not that simple, because GIF is a rather complicated format.
IIRC, you can use 16, 256 or true color modes, include several
pictures in one file, compress data, determine whether scan lines
should be stored sequentially or somewhat scrambled (making for a
possible overview when downloading on a slow connection, before all
of the image has arrived- notice some GIFs on the Web), etc.
But, if that helps, I've written a software bundle called bmp_conv,
and uploaded it to x2ftp.oulu.fi in some djgppv2-directory. It
converts BMP-files (which are by far easier to handle) for use with
the XLib library, but it should be comparatively easy to port for
GRX. You may want to give it a shot.
If questions come up, feel free to e-mail me.
Elmar
--
--
/----------------------------------------------------------------\
| Elmar Vogt : MS->PhD | voice: (+49)9131/761-207; fax: ...-202 |
| LUR, Schottkystr. 10 |http://www.rrze.uni-erlangen.de/~iwur08/ |
|University of Erlangen| Elmar DOT Vogt AT rzmail DOT uni-erlangen DOT de |
|91058 Erlangen-Germany| Vogt AT nt DOT e-technik DOT uni-erlangen DOT de |
|-------- VIS VISCERIS, NON FERRO FERTUR (T. Doom) --------------|
|SCA: Agilmar von Sevelingen; Fencing, Calligraphy, Jewelry, Food|
\----------------------------------------------------------------/
- Raw text -