Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!decwrl!chico.pa.dec.com!klee From: klee@chico.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: How to read a bitmap file into a pixmap? Message-ID: <2307@bacchus.dec.com> Date: 19 Dec 89 17:51:42 GMT References: <1128@wrgate.WR.TEK.COM> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Distribution: usa Organization: DEC Western Software Laboratory Lines: 14 In article <1128@wrgate.WR.TEK.COM>, tims@teklds.WR.TEK.COM (Tim Stoehr) writes: > I have files created from XWriteBitmapFile(). What's the best way to read > them in and convert to a mult-plane pixmap suitable for XCopyArea() to a > window? The easiest way is probably XReadBitmapFile then XCopyPlane into your window. Alternatively, you might be able to read the file into an XImage and XPutImage it into your window. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee