Re: XForms: Pixmap Transparency

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Tue, 17 Jun 1997 22:52:01 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

from francois bourcier <Francois.Bourcier@epita.fr> :
> I would ask you for a sample code to set the GCs for transparent
> Pixmaps because fl_read_pixmapfile doesn't do it while It's OK for
> PixmapButtons

As the document says, the parameter shape_mask is the clipping
mask that should be used for transparency. To set
the cliping mask in a GC, use XSetClipMask(display, gc, shape_mask)
then use this gc to show your pixmap.

_________________________________________________
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/