> From 'fl_create_from_pixmapdata' i receive a Pixmap ID compatible
> with Xlib and a Shape Mask (another Pixmap in which there should be
> setted non-transparent pixels). Now, if i display the Pixmap with
> XCopyArea, how can i tell him to display it with transparency? Or,
> how can i set the Shape Mask?
Use XSetClipMask(). Here's a snippet of code which I use to copy Pixmaps.
XSetClipMask( fl_get_display(), gc, shape_mask );
XSetClipOrigin( fl_get_display(), gc, x, y );
XSetPlaneMask( fl_get_display(), gc, AllPlanes );
XCopyArea( fl_get_display(),
pixmap,
FL_ObjWin( ob ),
gc,
0, 0,
width, height,
x, y );
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/