[comp.windows.x] Any bitmap file creating command?

inoue@sunburst.crd.ge.com (11/21/90)

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.  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?

I am also curious; are there any methods to translate from a PostScript 
file to a bitmap file, or vice versa?

I want to know about translation between drawable(window or pixmap),
bitmap files and PostScript. Any reference about that?

Thanks.

					T.I.(Takeshi Inoue)
					GE. CR&D
					(518)372-3743

mouse@LARRY.MCRCIM.MCGILL.EDU (11/22/90)

> 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