Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!seismo!esosun!cogen!celerity!celit!billd From: billd@celerity.uucp (Bill Davidson) Newsgroups: comp.windows.x Subject: color bitmap files Summary: X neophyte pleading for help Keywords: bitmap files color pixmaps depth Message-ID: <320@celit.UUCP> Date: 5 Jun 89 05:32:06 GMT Sender: news@celerity Reply-To: billd@celerity.UUCP (Bill Davidson) Distribution: na Organization: FPS Computing Inc., San Diego CA Lines: 27 First I'd like to thank all the people who sent me info about X Terminals. Many people sent me things. My mailbox runneth over. I can probably send the stuff to a few people who ask for it but if I get over about 20 queries I won't do it anymore (maybe I'll post it but Paul Anderson already seems to be doing that occasionally). Anyway, those of you who also read comp.graphics may know that I've been involved in a discussion about color quantization. So far, my quantizer only puts out sun rasterfiles. I'd like to change to X as my working environment soon. I wanted to make X bitmap files with 8-bit color for the 3/60C we have here but I can't seem to find anything for color bitmaps. The 2-color bitmap files are straightforward. They're even easy to write without the X library functions. I found XWDFile.h and xwd. That's a program and not a library function (I think ???). Is there a way to store and retrieve arbitrary color bitmaps in files? I would think that I just can't find it in the books that I have. (Dare I say it: "It must be there" :-). Since the whole point of having a "smart" quantizer is to choose the best possible colormap for the image, I need to be able to store 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). --Bill (wannabegraphicsguru) Davidson Bill Davidson ...!{ucsd,sdsu,fpssun,cogen,chip,photon}!celerity!billd