home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!mcsun!ieunet!tcdcs!maths.tcd.ie!longvalley!cjmchale
- From: cjmchale@dsg.cs.tcd.ie (Ciaran McHale)
- Subject: Re: Initializing Bitmap's
- Message-ID: <1992Nov19.142318.22505@dsg.cs.tcd.ie>
- Keywords: PIXMAP, BITMAP GC
- Organization: DSG, Dept. of Computer Science, Trinity College Dublin
- References: <1eem4rINNl0c@uwm.edu>
- Date: Thu, 19 Nov 1992 14:23:18 GMT
- Lines: 14
-
- 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
-