I can read and write the bitmap files just fine, but say I have now a large array of dwords (the dib's pixels) and I need to figure out what 256 colors I can use out of how ever many the 24-bit image has.
I made an algorithim that uses the colors that occure most often in the bitmap. But I quickly learned that it's not good enough.
I would link to make my program capable of acceptable 24 to 8 bit coversion. Like Corel Photo-Paint can do. Does anyone know how to make an algorithim that can do this good? I have done alot of googling, but I can't find anything.
Please help.
Yarin.