Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!dschmidt
From: dschmidt@athena.mit.edu (Dan Schmidt)
Newsgroups: comp.windows.x
Subject: Re: Best way to clear a PixMap?
Message-ID: <5945@bloom-beacon.MIT.EDU>
Date: 28 Jun 88 15:18:05 GMT
References: <60200002@urbsdc>
Sender: daemon@bloom-beacon.MIT.EDU
Reply-To: dschmidt@athena.mit.edu (Dan Schmidt)
Organization: Massachusetts Institute of Technology
Lines: 12

In article <60200002@urbsdc> kane@urbsdc.Urbana.Gould.COM writes:

 > What is the best way to clear an X11 bitmap?  The XClearArea
 > function only works on windows.  I guess I could use  XCopyPlane
 > to copy a blank pixmap into my pixmap...

Use XFillRectangle() with a GC whose function is GXclear.


+----------------------------+------------------------------------------------+
|          Dan Schmidt       |  Something I learned today                     |
|   dschmidt@athena.mit.edu  |  Black and white is always gray  -- Husker Du  |
+----------------------------+------------------------------------------------+