Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jr+ From: jr+@andrew.cmu.edu (Jonathan Rosenberg) Newsgroups: comp.windows.news Subject: NeWS & Colormaps Message-ID: Date: 10 Jan 91 16:09:10 GMT Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 23 I am in the process of evaluatingthe NeWS. I'm trying to load an image into a canvas. The image is an 8-bit pseudo color image with data values stored as 8-bit unsigned chars. I've managed to install the correct colormap for the image but when I use buildimage to read in the data values, it seems that it's taking the image and rendering it to an 8-bit gray-scale. My guess is that what's happening is that it looks at the rgb values for each of the pixels in the image and renders it to a gray-scale colormap. When I display the image, the colors are wrong, but they are consistently wrong. That is, all pixels in the image that should be color x are color y. When I uninstall the colormap associated with the image (the default X11/NeWS colormap is re-installed), I get a very nice gray-scale rendering of the image. Can anyone confirm that this is in fact what is happening and more importantly, how do I go about getting a color image onto a canvas. I've looked through all the documentation that I have and there's lots of talk about rendering both monochrome and gray-scale images to canvas and no talk of rendering color (pseudo-color) images to canvas. Please send replies to gil@faline.bellcore.com. Many thanks. gil