Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!caesar.cs.montana.edu!milton!uw-beaver!ubc-cs!alberta!calgary!cpsc!datta From: datta@cpsc.ucalgary.ca (Slarti) Newsgroups: comp.graphics Subject: Color Picking Message-ID: <2241@cs-spool.calgary.UUCP> Date: 14 Dec 89 06:21:48 GMT Sender: news@calgary.UUCP Reply-To: datta@cs-sun-fsb.UUCP (Slarti) Organization: U. of Calgary, Calgary, Alberta, Canada Lines: 19 Not being a regular subscriber to this group, I hope this message does not rehash something which has already been discussed heavily. What I would like to do is load in a color graphics format that is stored with 24 bit planes and display it on an 8 bit device. This in itself is not difficult, but what I need is a method of choosing 256 colors that can best be used to represent the image, without dithering or the like. I can get pictures to display fine with the default pallette for my machine, but I feel they could be better if the colors were set appropriately. Does an algorithm to do this exist? I would assume it involves some sort of vector math in RGBspace. If anyone knows of a method, or has some code, I would really appreciate it. E-Mail responses would be preferred, but I'll keep my eye on the net for a bit. TIA