Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: XImage Message-ID: <8910271829.AA08183@expire.lcs.mit.edu> Date: 27 Oct 89 18:29:25 GMT References: <3048@marble.sw.mcc.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 10 To invert an XImage, I can think of creating a pixmap of same size and depth, copying the image (with XPutImage and GXcopyInverted) into the pixmap, and retrieving the image back from the pixmap (XGetImage). That's a possible way, but probably not the fastest (although it depends a lot on the size of the image, and the relative performance of the client, the server, and the network connection). You can simply use XGetPixel and XPutPixel and do it all on the client side. The GetPixel/PutPixel code is rather slow in R3, but this will be fixed in R4.