🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.news
Article #704

NeWS & Colormaps

#704
From: Jonathan Rosenberg
Date: Thu, 10 Jan 1991 16:09
23 lines
1767 bytes
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
Technical Details
Message-ID: <cbX96ay00VAvA8=p02@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!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+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <cbX96ay00VAvA8=p02@andrew.cmu.edu>
Date: 10 Jan 91 16:09:10 GMT
Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA
Lines: 23