Re: XForms: New Object and Colormap

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 3 Nov 97 10:13:44 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Hello, I'd like to make a new object to visualize a Ximage and I have
> some questions about this:
>
> 1) is fl_state[TrueColor].colormap the internal colormap of Xforms???

If your Visual is TrueColor, yes. Otherwise, I'm not sure that the
data in fl_state valid.

> 2) can I use fl_state[TrueColor].colormap to visualize a Ximage
> structure using XputImage?? if it's possible, how can I make this???

Just use the standard Xlib routines. In a TrueColor Visual you really
don't need to worry about the Colormap too much as long as you use
XPutPixel(), etc., properly.

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://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/