Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!gatech!bloom-beacon!dont-send-mail-to-path-lines From: ekberg@asl.dl.nec.COM (Tom Ekberg) Newsgroups: comp.windows.x Subject: Re: overlay function in X Message-ID: <9102191541.AA24623@asl.dl.nec.com> Date: 19 Feb 91 15:41:09 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 11 > In case there's anyone out there who cares, something I would really like in > X is an overlay function of the sort > > pixel_out = (pixel_1 == 0? pixel_2:pixel_1); Try XCopyPlane. I think it does exactly what you want. If the bit in the bitmap is 0 then it draws the background color; if it is one then it draws the foreground color. -- tom, ekberg@aslss02.asl.dl.nec.com (x3503)