Newsgroups: comp.os.msdos.djgpp From: malyon AT netcom DOT com (Roland Acton) Subject: Re: Please help with PCX in DJGPP v2.0 and GRX v2.0! Message-ID: Organization: Netcom On-Line Services References: <5ciker$kqt AT news DOT interlog DOT com> Date: Wed, 29 Jan 1997 11:41:03 GMT Lines: 20 Sender: malyon AT netcom17 DOT netcom DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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. 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.