That sounds like the way to go.

I'll think I'll avoid 256 colour bitmaps in 256 colour mode because of
the dithering problems.


John Mason


Phil Middlemiss wrote:
> 
> The way that I usually ensure all my images share the same palette is to use
> a tool like Paint Shop Pro (or similar) and do the following:
> 
> 1) combine all the images into one new big temporary bitmap.
> 2) Reduce the color depth of the new image to 256 colours using whatever
> algorithm gives the best results - make sure you include the standard 16
> windows pallete colours into the new 256 colours.
> 3) save the palette to file.
> 4) load the new palette into each of the original images (usually dithered).
> 
> I think that Windows loads as much as possible of the pallete of the first
> BMP asked to be loaded and then for other BMPs just matches to the closest
> colour.
> 
> Hope that helps,
> 
> Phil.
> 
> ----- Original Message -----
> From: "Mason, John" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list offtopic" <[EMAIL PROTECTED]>
> Sent: Monday, October 02, 2000 2:40 PM
> Subject: [DUG-OFFTOPIC]: 256 colour bitmaps for button glyphs
> 
> > I want to use 256 colour bitmaps for buttons, but I'm having trouble
> > with the palettes. I'm using a mix of images I've designed myself, and
> > others I've acquired, and I can't avoid some images being corrupted (I
> > assume because the bitmaps don't all have the same palette). I've
> > managed to sort this out when Windows is in 16-bit mode, but can't fix
> > it when Windows is in 256-colour mode. Is there a way of ensuring a
> > consistent palette for all the bitmaps, or should I avoid 256 colour
> > buttons in 256 colour mode?
> >
> >
> >
> > John Mason
> > Sinclair Knight Merz Limited
> > --------------------------------------------------------------------------
> -
> >   New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> >
> 
> ---------------------------------------------------------------------------
>   New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz

-- 
John Mason
Sinclair Knight Merz Limited
---------------------------------------------------------------------------
  New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to