From: SerDevian Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with this PCX displaying source (in DJGPP & GRX) Date: Fri, 07 Feb 1997 13:00:24 -0700 Organization: XYZZ Software Co. Lines: 23 Message-ID: <32FB89D8.59E2@CS.ColoState.edu> References: <5de3qh$egn AT news DOT interlog DOT com> NNTP-Posting-Host: miro.vis.colostate.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Gautam N. Lad wrote: > Can someome please help me with this PCX displaying source. It > works for one image, a friend sent, but others don't work. WHY? > It seems right to me. > > NOTE: I won't be using 320x200 images only. I might be using a > smaller size. I would expect that it is because of a strange nuance imposed on pcx files by Zsoft. The bytes-per-line *must* be an even number, so images will sometimes be "padded" on the right side to force the image to be an even width. I've got some working pcx source on my web page if you want to use it (either just to use it, or to compare to the source you posted and fix the problem). It works for images of any size, and loads both correctly-saved images and incorrectly-saved images. -- Yamaha / XYZZ "May farce the with be you." mailto:scriven AT CS DOT ColoState DOT edu mailto:scriven AT VIS DOT ColoState DOT edu http://www.vis.colostate.edu/~scriven/