Message-ID: From: George Kinney To: "'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) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF586F.3E37D9C8" 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 Re: allegro...

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