Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!sgi!shinobu!odin!sgi.com!karlton From: karlton@sgi.com (Phil Karlton) Newsgroups: comp.windows.x Subject: Re: Bitmap -> Pixmap operation Keywords: weird operation? Message-ID: <11466@odin.corp.sgi.com> Date: 6 Aug 90 21:32:09 GMT References: <24310@boulder.Colorado.EDU> Sender: news@odin.corp.sgi.com Reply-To: karlton@sgi.com Organization: Silicon Graphics, System Software Division Lines: 21 In article <24310@boulder.Colorado.EDU>, devin@pippin.Colorado.EDU (Yampalimardilor) writes: |> I have a Bitmap (single plane Pixmap) and an eight plane Pixmap. |> I want to stamp the Bitmap onto the Pixmap so that any off locations in |> the Bitmap don't change the Pixmap and any on locations in the Bitmap |> set that location in the Pixmap to a specific value (i.e. 254). Is there |> an easy X way to do this? Thanks. You can do CopyPlane twice changing the GC between the two calls. Assuming a depth 8 destination visual, the following should work. GC function foreground background And 254 255 Or 254 0 Other combinations of functions and background/foreground will also work. The efficiency of any of the choices will depend upon the particular server you are using. PK