image displayed in different color

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

Questions about motif? Contact us

1 post / 0 new
image displayed in different color

Submitted by Anonymous on Tue, 05/21/2002 - 15:43. Developers
Hi all,
My program uses grey range to display the image. I am using XputImage() to display the image.
My logic is
1. First querie the 24bit colormap(I have this as default) for pixel value which are in grey range. This is done by filling r,g,b with equal values and then call XAllocColor(). These pixels are stored in an array.

2. Now what ever image is to be drawn will be mapped to any one of these pixels and the final XImage->data is filled up.

The problem i am facing is that this logic works fine for Irix m/c and the images are displayed in GREY range, but the same program when used on a WindowsXP m/c displays the image in different shades of green.

I am using SCO X-server and my default visual is TrueColor 24bit.

Even if i export the display to a Irix m/c, it still displayes in shades of Green.

Can any one please let me know what could be the possible cause of this problem?

thanks,
rakesh.