Path: utzoo!attcan!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!pacbell.com!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!shodha.dec.com!gsrc.dec.com!west From: west@gsrc.dec.com (Jim West (Stealth Contractor)) Newsgroups: comp.windows.x Subject: Re: Initializing Pixmap data Message-ID: <1377@shodha.dec.com> Date: 27 Jun 90 13:50:18 GMT Sender: news@shodha.dec.com Organization: Digital Equipment Corporation Lines: 26 In article <18116@ttidca.TTI.COM>, kevin@ttidcb.tti.com (Kevin Carothers) writes... - -Is it possible to do a call to XCreatePixmap() with the returned -data initialized? I guess I could muck around and do it myself -from the libX code, but I'm just wondering if there is an easier -way to get around doing a bunch of "XDrawPoints()" calls. - -Another technique is to simply create a "clear" bitmap, and "tile" -this bitmap with a series of "XCopyPlane" calls, but this also seems -kind of weird. Any help is appreciated. --- - Kevin Carothers {philabs,csun,psivax}!ttidca!kevin If I understand you right then you just want to call XFillRectangle right after you call XCreatePixmap. With XFillRectangle you set all pixels in the created pixmap to some known value...such as black. ---------------------------------------------------------------------- Jim West | The Schainker Converse west@gsrc.dec.com | to Hoare's Law : | These are my opinions. | Inside every small problem Digital has no idea | is a larger problem struggling what I'm saying. | to get out. ----------------------------------------------------------------------