eric@eddie.MIT.EDU (Eric Van Tassell) (04/09/89)
What is the fastest way of clearing (setting all pixels to the background)
a pixmap? TIA.--
Eric Van Tassell(dlcdev!eric@eddie.mit.edu)
Progress Software Corp.
22B Cotton Rd.
Nashua, NH 03063 {603-882-2488}jim@EXPO.LCS.MIT.EDU (Jim Fulton) (04/10/89)
> What is the fastest way of clearing (setting all pixels to the background) > a pixmap? Why not XFillRectangle of the whole thing with a gc whose foreground is the desired pixel value?
jg@crltrx.crl.dec.com (Jim Gettys) (04/10/89)
In article <11456@eddie.MIT.EDU> eric@eddie.MIT.EDU (Eric Van Tassell) writes: > >What is the fastest way of clearing (setting all pixels to the background) >a pixmap? TIA.-- Pixmaps don't have backgrounds. So it doesn't make sense to talk about it that way. XFillRectangle will do what you want... (see Scheifler, Gettys, Newman, pages 118 and 131). - Jim