home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20546 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  1.6 KB

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