Mail Archives: djgpp/2000/01/06/15:48:40
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">>how to display 2 or more different bitmaps (pcx) on the screen? There is no</FONT>
<BR><FONT SIZE=2 FACE="Arial">>problem when I have only 1 pic and call the set_pallete(pal). But if I</FONT>
<BR><FONT SIZE=2 FACE="Arial">>experiment something more with 2 pics and call the set_pallete(newpal) (or</FONT>
<BR><FONT SIZE=2 FACE="Arial">>just set_pallete(pal)) before or after blitting them to screen all those</FONT>
<BR><FONT SIZE=2 FACE="Arial">>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 -