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