Re: XForms: Pixmap Transparency

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Wed, 18 Jun 1997 22:23:30 -0500

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

from francois bourcier <Francois.Bourcier@epita.fr> :

-=)> 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.
-=)>

>Yes, the documentation says that, but that is not the problem .
>I know I have to set a shape_mask.
>But how do you know the pixmapfile transparent color (if there's one), if

There is no such a thing as a transparent color as in GIF in libXpm.
Transparency is achieved via the clipping mask by drawing
only the pixels that are not "transparent".

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