www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/21/23:02:01

From: George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Palette question...
Date: 22 Nov 1997 00:25:52 GMT
Organization: Oxford University, England
Lines: 24
Message-ID: <6558qg$ilq$4@news.ox.ac.uk>
References: <19971121183400 DOT NAA26585 AT ladder01 DOT news DOT aol DOT com>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


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