home *** CD-ROM | disk | FTP | other *** search
- From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
- Date: Wed, 23 Dec 1992 17:55:15 GMT
- Subject: Re: transparent parts of Pixmaps ??
- Message-ID: <7320058@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!wupost!howland.reston.ans.net!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hstroyan
- Newsgroups: comp.windows.x
- References: <jamescr.725096134@munagin>
- Lines: 23
-
- In comp.windows.x, jamescr@mullian.ee.mu.OZ.AU (jim crumpler) writes:
-
- > Is there any way to have transparent parts of a pixmap/image
- > so the underlying image is not destroyed by a blank box ???
- >
- Look at the Clip_mask component of the GC:
-
- The clip-mask restricts writes to the destination drawable. If the
- clip-mask is set to a pixmap, it must have depth one and have the same
- root as the GC, or a BadMatch error results. If clip-mask is set to
- None, the pixels are always drawn regardless of the clip origin. The
- clip-mask also can be set by calling the XSetClipRectangles or XSetRegion
- functions. Only pixels where the clip-mask has a bit set to 1 are drawn.
- Pixels are not drawn outside the area covered by the clip-mask or where
- the clip-mask has a bit set to 0. The clip-mask affects all graphics
- requests. The clip-mask does not clip sources. The clip-mask origin is
- interpreted relative to the origin of whatever destination drawable is
- specified in a graphics request.
-
- --
- Howard Stroyan
- Hewlett-Packard hstroyan@fc.hp.com
- Systems Technology Division
-