Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!robertw From: robertw@hpcvlx.HP.COM (Robert B. Williams) Newsgroups: comp.windows.x Subject: Re: color bitmap files Message-ID: <100920080@hpcvlx.HP.COM> Date: 6 Jun 89 22:47:22 GMT References: <320@celit.UUCP> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 23 As usual our dumb mailer can't find your address: >without the X library functions. I found XWDFile.h and xwd. >That's a program and not a library function (I think ???). Right, xwd is a client. It has a companion client xwud which will undump the file xwd writes. The R3 version (from HP anyway) will convert the colors it finds in the included colormap (see XWDFile.h) to a set of colors in a colormap matching the target visual. >Is there a way to store and retrieve arbitrary color bitmaps >in files? No such thing as a color bitmap. If its more than just on or off its a pixmap. They aren't the same, and the xlib tools for handling them aren't the same. (See Pgming Xlib 6.7) >the colormap in the file and have the display program try to >set the colormap to the one specified in the file (and, of >course, restore it after it's done). Exactly what xwud does. Of course its the window manager that actually installs the colormap, but xwud defines one from the data in the file. >--Bill (wannabegraphicsguru) Davidson Robert Williams robertw@hp-pcd.HP.COM 503-750-2818, Corvallis Workstation Operation