Path: utzoo!attcan!uunet!cs.utexas.edu!romp!auschs!d75!johnbob!root From: root@johnbob.uucp (/4194303) Newsgroups: comp.windows.x Subject: Re: Help with Drawing Pixmaps using Xlib Keywords: put image putimage Message-ID: <2791@d75.UUCP> Date: 6 Oct 89 20:47:40 GMT References: <39467@bu-cs.BU.EDU> <8910041743.AA07208@expire.lcs.mit.edu> Sender: news@d75.UUCP Reply-To: root@reed.UUCP (/4194303) Organization: Itty Bitty Machines, Austin, TX Lines: 27 >In article <8910041743.AA07208@expire.lcs.mit.edu> rws@EXPO.LCS.MIT.EDU (Bob Scheifler) writes: >>In article ? >> Now for a question: what do the GC foreground and background >> specifiers do on an XPutImage command? >> >They do what you want. An XYBitmap PutImage is equivalent to your >sending the data to a bitmap and then using CopyPlane. > but the destination must be the same depth (ie 1) so > I'm kind of confused as to what they do. >No such restriction for XYBitmap. The XYPixmap has the restriction that the src and dst must be the same depth, and foreground and background are not used. The XYBitmap must be depth 1 and a putimage color expands with foreground and background to whatever depth dst is. O' course I could be wrong... ...!uunet!cs.utexas.edu!ibmaus!auschs!johnbob.austin.ibm.com!root !john John Harvey !johnbob I don't speak for anybody. Not even myself. Please forgive my employers. They know not what I do. ..!uunet!cs.utexas.edu!ibmaus!auschs!johnbob.austin.ibm.com!root !john John Harvey !johnbob I don't speak for anybody. Not even myself. Please forgive my employers. They know not what I do.