ColorMaps and Image

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
ColorMaps and Image

Submitted by Anonymous on Tue, 10/08/2002 - 19:04. Developers
I am trying to produce an image, by defining a custom colormap, and then using an array to draw an image. The array is a 2-d array of integers, and the integers represent an RGB value. I think there should a way to send the entire array at once to some function, and then display. Sample could that I am looking at does a XputPixel, on a pixel by pixel basis, way to slow for my app. Any ideas?

ICS_support

You can manipulate the XImage data directly and then use XPutImage() to start to render it.

Anonymous

What are the steps to create the colormap, create the GC and Display?