Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: QueryColors and significant bits Message-ID: <8904111314.AA00943@EXPIRE.LCS.MIT.EDU> Date: 11 Apr 89 13:14:23 GMT References: <8904062306.AA2905657@devnet> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 7 I don't think there is any explicit wording in the protocol spec, but it was intended that servers be allowed to convert RGB values into their hardware range, and convert them back for QueryColors. So, what you are doing is OK, except that you (and we :-) should really be scaling values rather than masking/shifting. You notice this right away when you save away a color image and then try and redisplay it using a standard colormap. It's on our list of things to fix in the sample server.