Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Any bitmap file creating command? Message-ID: <9011221136.AA02093@Larry.McRCIM.McGill.EDU> Date: 22 Nov 90 11:36:14 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 25 > I wonder if there is an X command that creates bitmap files from > windows if the windows are one-plane depth. > Inside an application which it has drawable ID's inside, we can use > the XWriteBitmapFile function. > What I want to have is like 'xwd'; command, clicking a window by a > mouse, and bitmap file output. Surely it should be pretty easy to take xwd and replace the dumping code with a call to XWriteBitmapFile. (Not that I've looked at xwd's guts, but it can't be all that bad.) > We can get PostScrpt files using 'xwd' and some other commnads, but I > want to get bitmap files so that I can use the window image in Xlib > based application. Any command, or any alternative way to do that? Why not just use a pipeline like this? xwd | xwdtopbm | pbmtoxbm der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu