home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18905 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  1.8 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: transparent parts of Pixmaps ??
  5. Message-ID: <1992Dec24.212836.19173@sm.sony.co.jp>
  6. Date: 24 Dec 92 21:28:36 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Hewlett-Packard, Fort Collins, CO, USA
  10. Lines: 29
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Wed, 23 Dec 1992 17:55:15 GMT
  14. Message-Id: <7320058@hpfcso.FC.HP.COM>
  15. Newsgroups: comp.windows.x
  16. References: <jamescr.725096134@munagin>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In comp.windows.x, jamescr@mullian.ee.mu.OZ.AU (jim crumpler) writes:
  20.  
  21. >     Is there any way to have transparent parts of a pixmap/image
  22. >     so the underlying image is not destroyed by a blank box ???
  23. Look at the Clip_mask component of the GC:
  24.  
  25.     The clip-mask restricts writes to the destination drawable.  If the
  26.     clip-mask is set to a pixmap, it must have depth one and have the same
  27.     root as the GC, or a BadMatch error results.  If clip-mask is set to
  28.     None, the pixels are always drawn regardless of the clip origin.  The
  29.     clip-mask also can be set by calling the XSetClipRectangles or XSetRegion 
  30.     functions.  Only pixels where the clip-mask has a bit set to 1 are drawn.
  31.     Pixels are not drawn outside the area covered by the clip-mask or where
  32.     the clip-mask has a bit set to 0.  The clip-mask affects all graphics
  33.     requests.  The clip-mask does not clip sources.  The clip-mask origin is
  34.     interpreted relative to the origin of whatever destination drawable is
  35.     specified in a graphics request.
  36.  
  37. --
  38. Howard Stroyan                                         
  39. Hewlett-Packard                                        hstroyan@fc.hp.com
  40. Systems Technology Division                     
  41.