Mail Archives: djgpp/1997/02/07/06:13:10
> From: "Gautam N. Lad" <gautam AT interlog DOT com>
> Subject: Help with this PCX displaying source (in DJGPP & GRX)
> Date sent: 7 Feb 1997 02:25:21 GMT
> Organization: InterLog Internet Services
> To: djgpp AT delorie DOT com
> Hi,
> 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.
>
> I've been looking for a PCX displaying source in DJGPP & GRX
> and now that I have it, it doesn't work.
>
> NOTE: I won't be using 320x200 images only. I might be using a
> smaller size.
>
> Here's the source. PLEASE HELP!
[snip]...
>
> int IMAGE_WIDTH = 320;
> int IMAGE_HEIGHT = 200;
>
[snip]
>
>
> while(count-- > 0)
> {
> GrPlot(x++,y,color_map[color]);
> if(x >= IMAGE_WIDTH)
> {
> x=0;
> y++;
> }
> }
> } while(y < IMAGE_HEIGHT);
[snip]
I do not know much about graphic file formats, but just from looking
at the source, I can see that it can only process images that are
320x200 in size (IMAGE_WIDTH and IMAGE_HEIGHT). In my understanding
there should be the correct information in the pcx - File header.
Since I do not know the format I cannot help you there, but probably
you can find what you need in the internet and modify the source
accordingly. When you try to load pictures which are smaller or
bigger in size they will display - just corrupted. If that is right I
think my assumptions are true.
Markus
- Raw text -