colormaps in .im8 rasterfiles
Christopher Hull
hull at emily.uvm.edu
Sat Jul 22 06:29:58 AEST 1989
I have been trying to display some rasterfiles(.im8) images
from my own program. The files in particular are the ones the NeWS
imagedemo program uses (/usr/NeWS/smi) on the personal irises. The
problem I am having is interpreting the colormap in the file. My
program displays the image and it is recognizable however the colors
are definitely incorrect.
Right now I am using each byte in the image as an direct
offset into each of the red, green, and blue colormaps, and plotting
a pixel with those components. I have tried reversing and/or invert-
ing the colormaps with out any success. Does anyone know how to
correctly interpret the colormaps, or know how the NeWS operator
`imagecanvas' interprets the rasterfiles? Any help or pointers would
be greatly appreciated.
Thanx,
Christopher Hull
EMBA-CF University of Vermont, Burlington, VT
--------------------
hull at uvm-gen.uvm.edu
More information about the Comp.sys.sgi
mailing list