Mail from ILUG-BOM list (Non-Digest Mode)
xwd saves a `window dump' of the selected window to a file. Now
what is a window dump?
I thought it's a screenshot of the window. So I did xwd, and it
created a 1.1 MB xwd file for a certain window I selected.
manish@linux~/>xwd -out gfx.xwd
manish@linux~/>dir -h
... ... ... gfx.xwd ... 1.1 MB
Then I converted it to a portable anymap format file like
this...
manish@linux~/>xwdtopnm gfx.xwd > gfx.pnm
Again 1.1 MB.
Then I converted it to a png like this...
manish@linux~/>pnmtopng gfx.pnm > gfx.png
This time, I get about 16 KB only! (maybe I am wrong, but it's
many times less than the pnm file)
I understand why the png file is small. I also understand that I
could have done everything by |ing all in a single commandline.
Now when I open the png file, I get a pattern like stripes and
dots, instead of an image of the window I had selected. The
pattern, however, has the dimensions of the selected window.
I have RMPed for xwd, and it uses the term `window dump'. So am
I wrong that it means a screenshot? If I am correct, how do I
get it to work? If I am wrong, what is the use of a window dump
(a meaningless stripes and dots image pattern)?
Thanks a lot.
--
Manish Jethani
PS: I also did pnmtotiff, but I get the same meaningless image.
I have tried it in KDE and icewm both.
_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers