How to generate an optimized palette for 2 8bit color BMP

I need to merge 2 8bit color BMP palletes to create 1 new palette that fits both BMP with minimun quality loss. Im using color 0 on each palette to define transparent color ( sort of gif transparency ).

Thanks for your help.

Im using visual studio 2003

Comments

  • : I need to merge 2 8bit color BMP palletes to create 1 new palette that fits both BMP with minimun quality loss. Im using color 0 on each palette to define transparent color ( sort of gif transparency ).

    1 + 1 = 1

    You will need to parse the 2 original tables and find

    1) Equal color refs

    or/and

    2) Similar color refs and the middle ground of both

    This is an algorithmic problem you can probably find out a solution o Google or del.icio.us on algorithms and covert it back to C++ (probably a look at SourceForge on opensource libs would also provide solutions), post here your final conclusion and why you opted for it...
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion