.TL
Xwdtopnm User Manual
.SH 1
xwdtopnm
.LP
Updated: 21 October 2003
.br
Table Of Contents
.SH 2
NAME
.LP
xwdtopnm - convert an X11 or X10 window dump file to a PNM image
.SH 2
SYNOPSIS
.LP
\fBxwdtopnm\fR
[\fB-verbose\fR]
[\fB-headerdump\fR]
[\fIxwdfile\fR]
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBxwdtopnm\fR reads an X11 or X10 window dump file as input and
produces a PNM image as output. The type of the output image depends
on the input file - if it's black and white, the output is PBM. If
it's grayscale, the output is PGM. Otherwise, it's PPM. The program
tells you which type it is writing.
.LP
Using this program, you can convert anything you can display on an
X workstation's screen into a PNM image. Just display whatever you're
interested in, run the \fBxwd\fR program to capture the contents of
the window, run it through \fBxwdtopnm\fR, and then use \fBpamcut\fR
to select the part you want.
.LP
Note that a pseudocolor XWD image (typically what you get when you
make a dump of a pseudocolor X window) has maxval 65535, which means
the PNM file that \fBxwdtopnm\fR generates has maxval 65535. Many
older image processing programs (that aren't part of the Netpbm
package and don't use the Netpbm programming library) don't know how
to handle a PNM image with maxval greater than 255 (because there are
two bytes instead of one for each sample in the image). So you may
want to run the output of \fBxwdtopnm\fR through \fBpamdepth\fR
before feeding it to one of these old programs.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-verbose\fR"
This option causes \fBxwdtopnm\fR to display handy information about the
input image and the conversion process
.IP "\fB-headerdump\fR"
This option causes \fBxwdtopnm\fR to display the contents of the
X11 header. It has no effect when the input is X10. This option was
new in Netpbm 10.26 (December 2004).
.RE
.SH 2
SEE ALSO
.LP
pnmtoxwd,
pnm,
\fBxwd\fR man page
.SH 2
AUTHOR
.LP
Copyright (C) 1989, 1991 by Jef Poskanzer.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.LP
|