Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU Newsgroups: comp.windows.x Subject: Re: Standard Colormap Message-ID: <9101220425.AA12860@lightning.McRCIM.McGill.EDU> Date: 22 Jan 91 04:25:26 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 18 > I am writing an image processing progm which requires using a > standard colormap. However, it seems to me that the standard > colormap cannot be created. The following is my sample code[s]. [...] > if (XGetStandardColormap(XtDisplay(top), RootWindow(XtDisplay(top), > DefaultScreen(XtDisplay(top))), > &std_colormap, XA_RGB_DEFAULT_MAP) == 0) XGetStandardColormap does not create a standard colormap. It merely finds one if one has previously been created. (Incidentally, XGetStandardColormap has been superseded by XGetRGBColormap.) Try using xstdcmap to create the standard colormap first. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu