Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!think!linus!linus!luke.mitre.org!dsr From: dsr@luke.mitre.org (Douglas S. Rand) Newsgroups: comp.windows.x Subject: How to copy from depth 1 to depth n Keywords: bitmaps, pixmaps, images Message-ID: <114409@linus.mitre.org> Date: 23 Jul 90 21:08:44 GMT Sender: usenet@linus.mitre.org Reply-To: dsr@luke.mitre.org (Douglas S. Rand) Organization: MITRE Lines: 13 I'm a little stuck. I can create a pixmap from a bitmap file with XReadBitmapData. Great. Now what do I do to create a pixmap with the same depth as my display but with the same bitmap data? What I don't want to do (and the only alternative I see) is to do a XGetImage and XGetPixel along with a separate XCreatePixmap (right depth). Will someone please tell me I'm wrong (but be right about it OK? :) . Douglas S. Rand Internet: Snail: MITRE, Burlington Road, Bedford, MA Disclaimer: MITRE might agree with me - then again... Amateur Radio: KC1KJ