Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!asuvax!noao!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: X11R5 Dreams Message-ID: <802@auto-trol.UUCP> Date: 31 Aug 90 17:49:07 GMT References: <9008302203.AA20951@shamash.McRCIM.McGill.EDU> Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 35 In article <9008302203.AA20951@shamash.McRCIM.McGill.EDU> mouse@SHAMASH.MCRCIM.MCGILL.EDU (der Mouse) writes: >Jonathan Meyer writes a plea for reworking the color library routines. >For the most part I agree with him, but have a couple of comments. > >> Another thing I miss is the ability to determine whether a pixel >> value is a valid allocated color, an unallocated color, and whether >> it is read-write or read-only for a specific display connection. > >I think the philosophy is that you shouldn't care about any colormap >cells (aka pixel values) that you didn't allocate. Why do you want to >find this out? You may be trying to solve the wrong problem. > Just for example, my scenario would be as follows: I want to display continuous-tone image, with dynamic tone changes possible. Thus I need as many writeable color cells as I can get. On the other hand, I want to be "good citizen" and MINIMZE the "techniclor effect" when my colormap gets installed. So, I would like to copy the "most frequently" used colors from the default (shared) colormap into my private one. This would minimize color flashing... The problem is which colors to pick. Obviously, black and white are given by the display connection. But I'd like to preserve couple more. Out 256 colors, I can "spare" say 16 for "good behavior". So, I would like not only to querry if this is an allocated color, but also how many times it has been allocated .... And, naturally, I won't try to copy writeable color cells... -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404