Re: XForms: Pixmap Transparency

Dr. T.C. Zhao (
Tue, 17 Jun 1997 22:52:01 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <> :

from francois bourcier <> :
> 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 or see
Xforms Home Page:
List Archive: