www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/15:48:40

Message-ID: <DB85AFBE7C0DD311BF260004ACB80BFCECFC@nex_server.nextransport.com>
From: George Kinney <GKinney AT nextransport DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: allegro...
Date: Thu, 6 Jan 2000 12:55:39 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF586F.3E37D9C8
Content-Type: text/plain

>how to display 2 or more different bitmaps (pcx) on the screen? There is no
>problem when I have only 1 pic and call the set_pallete(pal). But if I
>experiment something more with 2 pics and call the set_pallete(newpal) (or
>just set_pallete(pal)) before or after blitting them to screen all those
>colors mix up...

That's because the two images are using different palettes. To avoid this,
you
need to either use a higher color-depth video mode that doesn't care about 
palettes, or you'll need to convert one or both images to use the same
palette.

My personal favorite util for doing this is DTA: Dave's Targa Animator, It
supports
several different methods of creating an optimal palette for one or a whole
slew of
images. I've compiled animations consisting of several hundreds of frames of
24bit
Targa input out to .pcx, .bmp and other formats with good results. It
handles quite 
a few image formats, and format converters are dirt common these days
ayways.


------_=_NextPart_001_01BF586F.3E37D9C8
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>Re: allegro...</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">&gt;how to display 2 or more different bitmaps (pcx) on the screen? There is no</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;problem when I have only 1 pic and call the set_pallete(pal). But if I</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;experiment something more with 2 pics and call the set_pallete(newpal) (or</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;just set_pallete(pal)) before or after blitting them to screen all those</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;colors mix up...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">That's because the two images are using different palettes. To avoid this, you</FONT>
<BR><FONT SIZE=2 FACE="Arial">need to either use a higher color-depth video mode that doesn't care about </FONT>
<BR><FONT SIZE=2 FACE="Arial">palettes, or you'll need to convert one or both images to use the same palette.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">My personal favorite util for doing this is DTA: Dave's Targa Animator, It supports</FONT>
<BR><FONT SIZE=2 FACE="Arial">several different methods of creating an optimal palette for one or a whole slew of</FONT>
<BR><FONT SIZE=2 FACE="Arial">images. I've compiled animations consisting of several hundreds of frames of 24bit</FONT>
<BR><FONT SIZE=2 FACE="Arial">Targa input out to .pcx, .bmp and other formats with good results. It handles quite </FONT>
<BR><FONT SIZE=2 FACE="Arial">a few image formats, and format converters are dirt common these days ayways.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF586F.3E37D9C8--

- Raw text -


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