Re: Palette Problem
- Posted by Lucius Hilley III <lhilley at CDC.NET> May 13, 1999
- 446 views
Hello Colin: This is Lucius, Remapping palettes does work great MOST of the time but after working with several images I have found several problems with it. 1. If it does work and work well you would want to save a copy of the image with the new palette. Remapping on the fly is a little slow. 2. 1 reason it may not work is that you have an image that has abundance of 1 color in the palette. Example: an image of Lava would have a palette consumed with different shades of red. And an image of the sky would have many blues. These 2 images won't simply remap very well from their palette to the others palette. You may have to Build a new palette that is a partial mixture of the 2 and remap both images to it. 3. I doubt Colin took this into account but I may be wrong. I know I took it into account when writing my rountines and gave up before solving the problem of drastically different palettes. I think Pete Eberlein wrote some excellent routines in this area. NOT SURE. Lucius L. Hilley III On Thu, 13 May 1999 10:24:43 -0400, Colin Taylor <cetaylor at COMPUSERVE.COM> wrote: >Message text written by Gwen: >>I've a little problem using palette in Eu using Read_bitmpap() : How >to Change a palette of a Bmp ? : >I want to use only one palette but my Bmps don't have the same pal, And I >don't know how to display 2 Bmp with differents pals at the same time on >Screen. Can you help me a bit please ?< > >Only one palette can be active, so if you try to show two images with >different palettes at the same time, the colors of one will be wrong. The >easiest solution is to convert one image to the palette of the other. I >wrote some palette utilities for just this purpose, which are posted on the >RDS web page (recent contributions). HTH. > >Colin