Mail Archives: djgpp/1997/11/25/10:46:15
>Subject: Re: Palette question...
>From: George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
>Date: Fri, Nov 21, 1997 19:25 EST
>Message-id: <6558qg$ilq$4 AT news DOT ox DOT ac DOT uk>
>
>On 21 Nov 1997 18:34:16 GMT in comp.os.msdos.djgpp KillFerFun
><killferfun AT aol DOT com> wrote:
>
>: Is there a way to use seperate palettes in a program, or a way to
>: make the images have the same palette? It seems rather redundant to
>: change palettes every time I display each different image, since I
>: have to use dozens of seperate bitmaps in my program.
>
>You need to convert all your images to using the same palette, yes.
>The simplest way to do this is to get a fancy paint program, load them
>in one at a time, converting them to 24-bit colour. Then make a big
>24-bit picture and copy them all onto it. Tell the paint program to
>then reduce the colour depth to 8-bit (256 colour), and it will choose
>a palette which works well with all the images. Then cut and paste
>the images back out again. They won't look quite the same as they did
>before, though; how close they look will depend on the colour
>conversion the paint program used.
>
>If you like you could design your own palette, and ask the paint
>program to use that when it reduces the colour depths; this way you
>don't need to put them all on the same image. You just load them in,
>convert to 24-bit, then convert back again using your new palette.
>
>
Coming up with one common palette is essential - but going to 24-bit and
back w/ multiple graphics?
hmmm.... that depends on how much these palettes differ actually....
you may be able to use the shareware program like NEOPAINT ... load one of the
images... save it's palette...
... and then load another graphic... and load the saved palette...
... although the palettes might not match for your graphics - each graphic
probably doesn't use nearly it's WHOLE palette...
If the images seriously "degrade" George's approach may well be the better
one!
Jim the loiterer
http://members.aol.com/qball1723/index.htm
(wannabe PC game/graphics developer)
- Raw text -