Path: utzoo!censor!geac!jtsv16!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Pixmap <-> Bitmap File? Message-ID: <8909071626.AA26035@expo.lcs.mit.edu> Date: 7 Sep 89 16:26:29 GMT References: Organization: The Internet Lines: 23 > I have bitmap data residing in a file that I want to access > at run-time. I want to convert this data to a Pixmap of > arbitrary depth. How do? > If I use XReadBitmapFile(), I get a pixmap of depth one, but > how do I convert this to a pixmap of depth >1? Create a pixmap of the desired depth, and a GC and then use XCopyPlane() this will put the foreground color everywhere there is 1 and background color everywhere there is a 0. The colors are retreived from the GC. > I'm strictly using Xlib... Some people cannot get enough punishment :-) Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213