delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/11/10:50:45

From: "YUBS" <jdebever1 AT home DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <T_tr3.8837$K%6 DOT 165729 AT news1 DOT rdc2 DOT on DOT home DOT com> <37AEBDCF DOT 5475 AT surfsouth DOT com>
Subject: Re: decoding pcx header
Lines: 61
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <R4Or3.9617$K%6.177354@news1.rdc2.on.home.com>
Date: Tue, 10 Aug 1999 04:42:25 GMT
NNTP-Posting-Host: 24.65.39.101
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc2.on.home.com 934260145 24.65.39.101 (Mon, 09 Aug 1999 21:42:25 PDT)
NNTP-Posting-Date: Mon, 09 Aug 1999 21:42:25 PDT
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

oh yeah, just one more thing on a slightly different note, DJGPP keeps
complaining that "there is no useful debugging information, try using the -g
compiler switch" but I am using the -g compiler switch! Anyone have a clue
as to what's up? thanks


-Josh de Bever


Chris Holmes <cholmes AT surfsouth DOT com> wrote in message
news:37AEBDCF DOT 5475 AT surfsouth DOT com...
> YUBS wrote:
> >
> > hey there, I'm having some trouble decoding the pcx header. I hunted
down
> > the format and everything, but I still can't seem to be able to read the
> > dimensions of the image from the header. If anybody knows anywhere I
could
> > get some info on doing this I'd really appreciate it. Basically, I've
tried
> > reading it as a text file and as a binary file, and I've tried reading
> > character by character and through formatted input (ie using fscanf) but
I
> > can't seem to get it to work. Anyway, thanks for any help you can offer.
>
> struct PCXheader
> {
>         char pcxID;
>         char version;
>         char rleEncoding;
>         char bitsPerPixel;
>         int x1,y1;
>         int x2,y2;
>         int hRes;
>         int vRes;
>         unsigned char palette[48];
>         char reserved;
>         char colorPlanes;
>         int bytesPerLine;
>         int paletteType;
>         char unused[58];
> };
>
>   width = x2- x1 +1;
>   height = y2 - y1 +1;
>
>   I can send you the rest of my source code if you need it.  Now if
> someone has a jpeg reader, that's impressive <grin>.
>
>   I wonder if anyone out there knows the structure to windows font
> files... I've been looking for them for awhile now.
>
>   Chris
>
> --
> I know that I will never be politically correct,
> and I don't give a damn about my lack of etiquette!
> -- Meatloaf
>


- Raw text -


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