Linux Commands Examples

A great documentation place for Linux commands

pnmtoxwd

convert a portable anymap into an X11 window dump


see also : xwdtopnm - xwud

Synopsis

pnmtoxwd [-pseudodepth n] [-directcolor] [pnmfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
/usr/local/netpbm/giftopnm $i | \
/usr/local/netpbm/pnmtoxwd >$XWDNAME
done
0
source
            
XWDNAME=`basename $i .img`.xwd
/local/Tools/pbmplus/bin/gemtopbm $i | \
/local/Tools/pbmplus/bin/pnmtoxwd >$XWDNAME
done
0
source
            
do
XWDNAME=`basename $i .pcx`.xwd
$PBMTOOLS/pcxtoppm $i | \
$PBMTOOL/pnmtoxwd >$XWDNAME
done
0
source
            
XWDNAME=`basename $i .rf`.xwd
/local/Tools/pbmplus/bin/rasttopnm $i | \
/local/Tools/pbmplus/bin/pnmtoxwd >$XWDNAME
done

description

Reads a portable anymap as input. Produces an X11 window dump as output. This window dump can be displayed using the xwud tool.

Normally, pnmtoxwd produces a StaticGray dump file for pbm and pgm files. For ppm, it writes a PseudoColor dump file if there are up to 256 colors in the input, and a DirectColor dump file otherwise. The -directcolor flag can be used to force a DirectColor dump. And the -pseudodepth flag can be used to change the depth of PseudoColor dumps from the default of 8 bits / 256 colors.


see also

xwdtopnm , pnm, xwud


author

Copyright (C) 1989, 1991 by Jef Poskanzer.

How can this site be more helpful to YOU ?


give  feedback