Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!gopnbg!mcshh!rrzbu!arne From: arne@rrzbu.hanse.de (Arne Ludwig) Newsgroups: comp.windows.x Subject: creating n-bit Pixmaps on other-than-n-bit screens Message-ID: <1597@rrzbu.UUCP> Date: 24 Jul 90 01:35:33 GMT Lines: 28 R3 server. R4 Xlib. (although this doesn't matter) xdpyinfo output: ... supported pixmap formats: ... depth 8, bits_per_pixel 8, scanline_pad 32 ... number of screens: 1 screen #0: depths (1): 4 So it won't create Pixmaps with depths other than 4 (and 1), i.e. pix8 = XCreatePixmap(dpy, drawable_on_screen_0, 64, 64, 8); fails with BadValue. Fine. Does this mean, the server supports 8 bit Pixmaps but there is no screen that does?? Why should anybody do that? Is this a problem with my particular server or with my understanding of the protocol? Can I get around that restriction? PS. I won't need to CopyArea that Pixmap, I just need to GetImage from it. What I really need is a way to convert a depth 8 XImage portably. -- Arne Ludwig arne@rrzbu.hanse.de ...uunet!??????!rrzbu!arne