Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!gwusun!viraf From: viraf@gwusun.gwu.edu (Viraf Bankwalla) Newsgroups: comp.sys.mac.programmer Subject: Help : Color tables Message-ID: <1323@gwusun.gwu.edu> Date: 11 Apr 89 15:19:45 GMT Reply-To: viraf@gwusun.gwu.edu (Viraf Bankwalla) Distribution: usa Organization: The George Washington University, Washington, D.C. Lines: 18 Hi, I have written a program that converts sun raster files to PICT format, but the colors are off. The sun uses 8 bit values in its color lookup table, while the Mac uses 16 bit values. I simply shift the RGB components left 8 times - but that introduces green in some parts of the image, that should be orange. How should one go around converting 8 bit color values to 16 bits, and vice versa. Thanks in advance. viraf bankwalla viraf@gwusun.gwu.edu uunet!gwusun!viraf