From: "Gautam N. Lad" Newsgroups: comp.os.msdos.djgpp Subject: Please help with PCX in DJGPP v2.0 and GRX v2.0! Date: 27 Jan 1997 16:17:31 GMT Organization: InterLog Internet Services Lines: 36 Message-ID: <5ciker$kqt@news.interlog.com> NNTP-Posting-Host: ip203-247.cc.interlog.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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. I don't know how the pallete, and the putting of pixel at an X,Y location with a specified colour works. Actually , I don't know how most of it works. I was able to use the PCX header to extract the Width,Height,BPP, and version number, etc, but was stumpped on the actual displaying part. Bye! Thanks! **************************************************** * Gautam N. Lad * *--------------------------------------------------* * * * E-Mail : gautam AT interlog DOT com * * Website : http://www.interlog.com/~gautam * * * * OS/2, DOS/Windows, Graphics Gallery, Software, * * Links, Rayzor Editor/2, POV-Ray, and more. * ****************************************************