Mail Archives: djgpp/1997/01/29/14:07:35
Gautam N. Lad (gautam AT interlog DOT com) wrote:
: Hi,
: Can someome please tell me how reading, and displaying a PCX works
: under DJGPP v2.0 and GRX v2.0? I know most of you might be
: getting annoyed with my message, but I don't care. Rather than
: flaming me for this, just ignore this message.
: Does reading PCX go like this:
: Read the header (width,height,bits/plane,etc.)
: Read the Pallete that's 768 byts before EOF.
: Store the pallete values in an RGB array,
: Use PutPixel equivalent function to display the pixel with the
: colour from the pallete.
: Is this how it works? Please help me.
<SNIP>
Why not grab the sources to Allegro? There is code in there to read and
display PCX files. Much easier than writing it all yourself.
- Raw text -