> Could anyone tell me how to display an image (PGM) in a canvas with the
> correct colormap???
The easiest way is to use OpenGL or MesaGL and a glCanvas object.
They'll handle the colormap conversion for you. Otherwise, you'll
have to handle the color quantization and colormap conversion
yourself. There's a nifty octree algorithm written up in the first of
the _Graphics Gems_ series to do the quantization. Refer to your
favorite Xlib reference or programming manual for a discussion of how
to handle colormaps and conversion.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/