Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!pasteur!graft!scott From: scott@graft.Berkeley.EDU (Scott Silvey) Newsgroups: comp.windows.x Subject: Re: XCopyPlane() bug (sort of). Message-ID: <26025@pasteur.Berkeley.EDU> Date: 9 Jul 90 22:23:36 GMT References: <26023@pasteur.Berkeley.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: scott@xcf.berkeley.edu Organization: UC Berkeley Experimental Computing Facility Lines: 13 In article <26023@pasteur.Berkeley.EDU>, scott@graft.Berkeley.EDU (Scott Silvey) writes: |> The one thing I CAN get to work is to do an XGetImage() and then query each and |> every pixel using XGetPixel(). For each pixel that is not the background color, |> I do and XDrawPoint() on the bitmap. This is dog-slow though, doing two |> X operations per pixel (what if I have a megapixel image?!). I know I could use XDrawPoints(), cutting down the number of X operations by 50 percent, but there is still one XGetPixel() call per point. Scott