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

  1. Path: sparky!uunet!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!usafa!hewitt
  2. From: hewitt@usafa.af.mil (Joe Hewitt)
  3. Newsgroups: comp.windows.x
  4. Subject: Changing Colormap RGB values...
  5. Keywords: colormap RGB XView
  6. Message-ID: <549@usafa.af.mil>
  7. Date: 23 Jul 92 03:17:12 GMT
  8. Distribution: comp.windows.x
  9. Organization: U.S. Air Force Academy, Colorado
  10. Lines: 28
  11.  
  12.  
  13.  
  14. Problem:    How to dynamically change the RGB values in a colormap entry
  15.             so that all objects using that colormap index automatically
  16.             change to the new color (in XView or Xlib).
  17.  
  18. H/W & S/W:  Sun SS 2 running OW 2.
  19.  
  20. Project:    I am developing a simple app using XView to allow users
  21.             to interactively change the RGB component values of a
  22.                given colormap index.  The idea is when the colormap
  23.             components change, all objects drawn using that index
  24.             automatically assume the new color without any application
  25.             procedure getting called to do the drawing.
  26.  
  27. Request:    I would like to see sample code that changes the RGB
  28.             values on the fly.  Can someone help?
  29.  
  30. Many thanks in advance.
  31.  
  32. Cheers!
  33.  
  34. --Joe
  35. -- 
  36.  )       (         / \               )   )             _/__/_
  37.  \   ^   /       _/__/___    _      /__ / _  _    _ o  /  /
  38.   \_/ \_/   o   (_/   (__)__(/__   /   / (/__(_/\_)_(_(__(__  
  39. W. Joe Hewitt, 1Lt, USAF                  hewitt@usafa.af.mil 
  40.