Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!madd From: madd@bu-cs.BU.EDU (Jim Frost) Newsgroups: comp.windows.x Subject: Re: Help with Drawing Pixmaps using Xlib Message-ID: <39467@bu-cs.BU.EDU> Date: 4 Oct 89 15:46:00 GMT References: <31687@ucbvax.BERKELEY.EDU> <8910041226.AA05387@expire.lcs.mit.edu> Reply-To: madd@cs.bu.edu (Jim Frost) Followup-To: comp.windows.x Organization: Software Tool & Die Lines: 21 In article <8910041226.AA05387@expire.lcs.mit.edu> rws@EXPO.LCS.MIT.EDU (Bob Scheifler) writes: |If you're going 1-bit to 1-bit, just use |XCopyArea. If you're going 1-bit to N-bit, just use XCopyPlane. Use XCopyPlane always so you don't have to worry about the depth of the other pixmap. This is what I use when sending bitmap images to both mono and color displays; allocate a mono pixmap, XPutImage to it, then XCopyPlane with GC foreground and background set to recolor the image appropriately. This is a bit slower to mono displays (you don't really need the extra copy) but is a lot more flexible. Now for a question: what do the GC foreground and background specifiers do on an XPutImage command? What I really hoped was that I could use them to specify colors when transferring a mono image to a color display, but the destination must be the same depth (ie 1) so I'm kind of confused as to what they do. jim frost software tool & die madd@std.com