www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/07/22:03:20

From: "r. v. paasen" <R DOT L DOT F DOT v DOT Paasen AT stud DOT tue DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with this PCX displaying source (in DJGPP & GRX)
Date: Sat, 08 Feb 1997 02:33:47 +0100
Organization: Eindhoven University of Technology, The Netherlands
Lines: 42
Message-ID: <32FBD7FA.484A@stud.tue.nl>
References: <5dgb2t$7h4 AT news DOT interlog DOT com>
Reply-To: R DOT L DOT F DOT v DOT Paasen AT stud DOT tue DOT nl
NNTP-Posting-Host: annex1s45.urc.tue.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gautam N. Lad wrote:
> 
> Hi,
> Concerning my PCX question:
> Well, to all those who replied, THANKS.  But, the problem here's still
> invisible to me.  The Bytes Per Line (like it should) seem to be
> even, and is same as the width of the image.  I tried loading up
> an image that's 160x120, and it displays it, but it looks sliced up
> (NOTE: I displayed the image, using it's dimensions, not 320x200, so
> I'm not loading a 160x120 image, using 320x200 resolution).
> 
> I also discovered something else.  An image with very few colours will
> load up fine.  It's just not working for images with 256 colour.
> WHY WHY WHY!?!?!?
> 
> I think my source is right, and should work, but, I just can't figure
> out WHY it won't display certain images.
> 
> BTW, I'm using Dyeworks to convert a 24-bit TARGA (.TGA) to a .PCX
> image, with 256 colours and a palette (version 5).  That's what I
> HAVE to use to convert .TGA to .PCX, and then display the .PCX!
> Also, DO NOT teach me how to read a .TGA.  I'm not commanding anyone
> here, it's just that lately, I ask a specific question, and I get
> a different answer (most are annoying, and pretty pointless).
> 

Why not usea third party lib to read TGA and write PCX ?
Those graphics formats won't bother you then.
Check out Azure at <http://huizen.dds.nl/~buddha/>
It will read TARGA8/16/24/32alpha and write PCX16/256 (and vice versa)

A third party lib is always worth checking out. When times
come to port you prg to other platforms, you can always look
for different libs, or write it yourself. As long as you design
your program well.....

Cheers, Richard.
 
-------------------------------------------
email: <mailto:R DOT L DOT F DOT v DOT Paasen AT stud DOT tue DOT nl>
www:   <http://huizen.dds.nl/~buddha/>
SENDING UNSOLICITED MAIL AND JUNK MAIL IS PROHIBITED

- Raw text -


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