[comp.windows.x] Gray-scale picture in a window

engelson-sean@CS.YALE.EDU (Sean Philip Engelson) (08/05/89)

Please excuse this cry for help...

Does anyone have some simple code to display a gray-scale picture
(array of grey-scale values) in a window?  That is, it sets up the
colormap and all that other stuff.  I'm having a devil of a time
trying to figure it out from the Xlib/Xt docs.  Something that works
with/in Xt would be best.

Thanks much,

----------------------------------------------------------------------
Sean Philip Engelson, Poet Errant	Make your learning a fixture;
Yale Department of Computer Science	Say little and do much;
Box 2158 Yale Station			And receive everyone with 
New Haven, CT 06520			   a kindly attitude.
----------------------------------------------------------------------
Artificial Intelligence:  The science of making computers that behave
like the ones in the movies.