www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/07/06:13:10

From: "Markus Klink" <MARKUS AT pool DOT uni-mannheim DOT de>
To: djgpp AT delorie DOT com
Date: Fri, 7 Feb 1997 12:10:27
Mime-Version: 1.0
Subject: Re: Help with this PCX displaying source (in DJGPP & GRX)
Message-Id: <2363D397F42@pool.uni-mannheim.de>

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019