Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mayoff From: mayoff@cs.utexas.edu (Robert Mayoff) Newsgroups: comp.windows.x Subject: Re: XImage help Message-ID: <1313@paducah.cs.utexas.edu> Date: 10 Apr 91 17:21:08 GMT References: Organization: Dept of Computer Sciences, UTexas, Austin Lines: 16 In article jwz@lucid.com (Jamie Zawinski) writes: >Say I've got an XImage structure that I've read from a file. >What's the best way to display that in a window, when the >current display doesn't necessarily have the same depth as >the XImage does? Let's assume the display is at least as >deep as the image. I haven't tried this yet (although I'm working on a program with a similar problem, so I will soon), but I'd suggest that you simply create a pixmap with the same depth as the image, and XPutImage to that auxiliary pixmap. Then just XCopyPlane from the auxiliary pixmap to your window. -- /_ rob /_ Fun things to do with UNIX (#2 in a series): / echo "rsh `hostname` -n source eat.cpu &" > eat.cpu; source eat.cpu