home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14400 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.1 KB

  1. Path: sparky!uunet!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse
  2. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Changing Colormap RGB values...
  5. Keywords: colormap RGB XView
  6. Message-ID: <1992Jul25.110130.8333@thunder.mcrcim.mcgill.edu>
  7. Date: 25 Jul 92 11:01:30 GMT
  8. References: <549@usafa.af.mil>
  9. Organization: McGill Research Centre for Intelligent Machines
  10. Lines: 20
  11.  
  12. > Distribution: comp.windows.x
  13.  
  14. Please don't misuse newsgroup names as distributions.
  15.  
  16. In article <549@usafa.af.mil>, hewitt@usafa.af.mil (Joe Hewitt) writes:
  17.  
  18. > Problem:    How to dynamically change the RGB values in a colormap
  19. >             entry so that all objects using that colormap index
  20. >             automatically change to the new color (in XView or Xlib).
  21.  
  22. Briefly, XStoreColor() / XStoreColors().  The only point that's likely
  23. to trip you up is that you have to allocate the colormap entries
  24. read/write, with XAllocColorCells (or XAllocColorPlanes, but if you
  25. understand X color well enough to use XAllocColorPlanes and get it
  26. right, you almost certainly wouldn't be asking what you did).
  27.  
  28.                     der Mouse
  29.  
  30.                 mouse@larry.mcrcim.mcgill.edu
  31.