home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19338 < prev    next >
Encoding:
Text File  |  1992-11-19  |  975 b   |  26 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!mcsun!ieunet!tcdcs!maths.tcd.ie!longvalley!cjmchale
  3. From: cjmchale@dsg.cs.tcd.ie (Ciaran McHale)
  4. Subject: Re: Initializing Bitmap's
  5. Message-ID: <1992Nov19.142318.22505@dsg.cs.tcd.ie>
  6. Keywords: PIXMAP, BITMAP GC
  7. Organization: DSG, Dept. of Computer Science, Trinity College Dublin
  8. References: <1eem4rINNl0c@uwm.edu>
  9. Date: Thu, 19 Nov 1992 14:23:18 GMT
  10. Lines: 14
  11.  
  12. In <1eem4rINNl0c@uwm.edu> amit@point.cs.uwm.edu (Amit Srivastava) writes:
  13. >Is there way to initialize a bitmap to say all 0's , without
  14. >doing without loading it from a data file.  I am drawing on the Pixmap,
  15. >of depth 1, but I getting garbage at locatiuons I have not drawn.
  16. >        Any quick way to do this?  Thanx.
  17.  
  18. Yes, use XFillRectangle; have the foreground color of the GC set to 0.
  19.  
  20.  
  21. Ciaran.
  22. -- 
  23. ---- Ciaran McHale (cjmchale@dsg.cs.tcd.ie)
  24. \bi/ Department of Computer Science, Trinity College, Dublin 2, Ireland.
  25.  \/  Telephone: +353-1-7021539 FAX: +353-1-6772204
  26.