1Xwdtopnm User Manual(0)                                Xwdtopnm User Manual(0)
2
3
4

NAME

6       xwdtopnm - convert an X11 or X10 window dump file to a PNM image
7
8

SYNOPSIS

10       xwdtopnm [-verbose] [-headerdump] [xwdfile]
11
12

DESCRIPTION

14       This program is part of Netpbm(1).
15
16       xwdtopnm  reads  an X11 or X10 window dump file as input and produces a
17       PNM image as output.  The type of the output image depends on the input
18       file  - if it's black and white, the output is PBM.  If it's grayscale,
19       the output is PGM.  Otherwise, it's PPM.  The program tells  you  which
20       type it is writing.
21
22       Using  this  program,  you can convert anything you can display on an X
23       workstation's screen into a PNM image.  Just  display  whatever  you're
24       interested  in, run the xwd program to capture the contents of the win‐
25       dow, run it through xwdtopnm, and then use pamcut to  select  the  part
26       you want.
27
28       Note that a pseudocolor XWD image (typically what you get when you make
29       a dump of a pseudocolor X window) has maxval 65535, which means the PNM
30       file  that  xwdtopnm generates has maxval 65535.  Many older image pro‐
31       cessing programs (that aren't part of the Netpbm package and don't  use
32       the  Netpbm  programming  library) don't know how to handle a PNM image
33       with maxval greater than 255 (because there are two  bytes  instead  of
34       one  for  each sample in the image).  So you may want to run the output
35       of xwdtopnm through pamdepth before feeding it to one of these old pro‐
36       grams.
37
38

OPTIONS

40       -verbose
41              This  option  causes xwdtopnm to display handy information about
42              the input image and the conversion process
43
44
45       -headerdump
46              This option causes xwdtopnm to display the contents of  the  X11
47              header.   It  has  no effect when the input is X10.  This option
48              was new in Netpbm 10.26 (December 2004).
49
50
51
52
53

SEE ALSO

55       pnmtoxwd(1), pnm(1), xwd man page
56
57

AUTHOR

59       Copyright (C) 1989, 1991 by Jef Poskanzer.
60
61
62
63netpbm documentation            21 October 2003        Xwdtopnm User Manual(0)
Impressum