Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!fernwood!uupsi!cmcl2!panix!yanek From: yanek@panix.uucp (Yanek Martinson) Newsgroups: comp.graphics Subject: Palette selection Message-ID: <1991Jun7.055314.14808@panix.uucp> Date: 7 Jun 91 05:53:14 GMT Article-I.D.: panix.1991Jun7.055314.14808 Sender: yanek@panix.uucp (Yanek Martinson) Organization: PANIX - Public Access Unix Systems of NY Lines: 5 Can anybody help with this? Problem: I have an image in 24-bit color (a byte for each r, g, b), and I need to display it on a screen that can show 256 colors at a time, out of palette of 262144 (18 bits, 6 bits for each r,g,b). How do I select the best 256 colors that represent the 24-bit picture? Source code? Comments? Algorithms? Suggestion?