home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / graphics / 13297 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.6 KB

  1. Path: sparky!uunet!think.com!ames!pacbell.com!network.ucsd.edu!ivem.ucsd.edu!spl
  2. From: spl@ivem.ucsd.edu (Steve Lamont)
  3. Newsgroups: comp.graphics
  4. Subject: Re: Color data help needed
  5. Date: 31 Dec 1992 19:56:35 GMT
  6. Organization: University of Calif., San Diego/Microscopy and Imaging Resource
  7. Lines: 26
  8. Distribution: world
  9. Message-ID: <1hvj9jINN1c0@network.ucsd.edu>
  10. References: <judith-311292135444@mollusk.larc.nasa.gov>
  11. NNTP-Posting-Host: ivem.ucsd.edu
  12.  
  13. In article <judith-311292135444@mollusk.larc.nasa.gov> judith@mermaid.larc.nasa.gov (Judith Moore) writes:
  14. >My new question is, is there some other convenient way of
  15. >mapping 8-bit values to a table of maybe 100->128 colors?  My
  16. >applications need to do this as quickly as possible, and I 
  17. >_don't_ want to lose my original data.
  18. >
  19. >Any help, references, cogitation, or (ideally) source code
  20. >would be much appreciated.
  21.  
  22. The best suggestion I can make is to get a copy of the O'Reilly &
  23. Associates Xlib Reference Manual and Xlib Programming Manual  (ISBN
  24. 1-56592-002-3 and ISBN 1-56592-006-3).  They're big, fat, moderately
  25. expensive books but well worth the weight and cost.  In the
  26. Programming Manual, there is a lengthy chapter on how to deal with
  27. color maps.
  28.  
  29. Example source code is available on the net at export.lcs.mit.edu and
  30. at ftp.uu.net (18.24.0.12 and 137.39.1.9, respectively).  Look in
  31. /contrib/OReilly and nutshell/Xlib.
  32.  
  33.                             spl
  34. -- 
  35. Steve Lamont, SciViGuy -- (619) 534-7968 -- spl@szechuan.ucsd.edu
  36. UCSD Microscopy and Imaging Resource/UCSD Med School/La Jolla, CA 92093-0608
  37. "Living alone is living in perpetual irony and thinking, more and more
  38. frequently, Why not."   - Joyce Carol Oates, "The Boyfriend"
  39.