Xref: utzoo comp.windows.x:24436 comp.windows.x.motif:88 Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cos!hqda-ai!media!arthur From: arthur@media.uucp (Art Poley) Newsgroups: comp.windows.x,comp.windows.x.motif Subject: Colormaps Message-ID: <1990Jul13.183517.23734@media.uucp> Date: 13 Jul 90 18:35:17 GMT Organization: Media Cybernetics, Inc. Lines: 26 I am trying to implement a 256 element PseudoColor colormap under X/motif for image processing applications. The palette will initially be linear and via pseudocolor, contrast, and other imaging operations may be dynamically altered. Using the calls XCreateColormap, XAllocColorCells, and XStoreColor I have been able to create a linear mapping. I then use XSetWindowColormap to associate this mapping to the toplevel application shell. Unfortunately, the colors used by the window manager have been lost. Does anyone know how to preserve the colors used by the motif window manager within my 256 element colormap? Basically, I would like to create a (256 - N) element colormap. Where N would be the number of colors needed to preserve the 3D-look, menus, etc. used by the mwm. Due to the dynamic nature of the imaging colormap, sharing of colormaps does not seem like a good approach. I'd really just assume that N out of my 256 are reserved for the window manager. Hopefully N won't be to large (16 or less?). If anyone has any suggestions, references, etc., I'd really appreciate it. Thanks! Art -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |\/\/\/\/| | | | | | (e) (e) _______________________ | _) / | (c ,_____\ / Oh, Yeah, Right! | | (__( < | | / \ Don't have a cow, man.| /____\ \_______________________| / \ Art Poley - Media Cybernetics Phone: (301)495-3305 Internet: arthur%media@uunet.uu.net UUCP: {uunet,hqda-ai}!media!arthur ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++