home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17656 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.2 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: cjmchale@dsg.cs.tcd.ie (Ciaran McHale)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: Initializing Bitmap's
  5. Message-ID: <1992Nov19.215326.23076@sm.sony.co.jp>
  6. Date: 19 Nov 92 21:53:26 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: DSG, Dept. of Computer Science, Trinity College Dublin
  10. Lines: 20
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 19 Nov 92 14:23:18 GMT
  14. Message-Id: <1992Nov19.142318.22505@dsg.cs.tcd.ie>
  15. Newsgroups: comp.windows.x
  16. References: <1eem4rINNl0c@uwm.edu>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In <1eem4rINNl0c@uwm.edu> amit@point.cs.uwm.edu (Amit Srivastava) writes:
  20. >Is there way to initialize a bitmap to say all 0's , without
  21. >doing without loading it from a data file.  I am drawing on the Pixmap,
  22. >of depth 1, but I getting garbage at locatiuons I have not drawn.
  23. >        Any quick way to do this?  Thanx.
  24.  
  25. Yes, use XFillRectangle; have the foreground color of the GC set to 0.
  26.  
  27.  
  28. Ciaran.
  29. -- 
  30. ---- Ciaran McHale (cjmchale@dsg.cs.tcd.ie)
  31. \bi/ Department of Computer Science, Trinity College, Dublin 2, Ireland.
  32.  \/  Telephone: +353-1-7021539 FAX: +353-1-6772204
  33.