Re: XForms colormap

Stefano Mancini (
Tue, 21 Jan 1997 09:01:25 +0100

To subscribers of the xforms list from Stefano Mancini <> :

Andrew Baucom wrote:
> To subscribers of the xforms list from "Andrew Baucom" <> :
> Hi,
> I have discovered XForms as a means of creating XWindow applications and am
> thoroughly impressed.
> I need some help to figure out how I go about creating a custom color
> palette for viewing images in
> a canvas. I've got my image in an XImage structure and it works fine on a
> 24 bit color display. I can't
> seem to figure out how to change the system palette so I can view the image
> correctly on an 8-bit
> color display. I realize I've got to same some "basic system" colors for
> window decorations and buttons.
> but I'm not having any luck with the fl_mapcolor routines....
> My images are 1024 color grayscale which I can compress down to 256 or less
> colors. I'd like to use
> as many colors as possible to view the image.
> Does anyone have any example code I could view to see how to create a
> custom colormap?
> Thanks,
> -Andrew Baucom
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Andrew W. Baucom/Senior Software Engineer
> Swales Aerospace
> 301-572-1327
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> or see

If you need to define a private colormap to perform graphic overlays, i
have the code for you....
let me know.


To unsubscribe, send the message "unsubscribe" to or see