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