|
发表于 2003-10-11 15:27:32
|
显示全部楼层
use xwd and convert.
xwd is an X Window System window dumping utility shipped with
the X Window System, and should always be ready for use.
convert converts an image to variaous formats,
it is part of ImageMagick and should always be installed.
commands:
to dump the root window and save image as .png :
$ xwd -root | convert - root.png
but wait, most times this will be more helpful :
$ sleep 5; xwd -root | convert - root.png
to dump a normal window, run this and click on that window :
$ xwd | convert - window.png
or use the import command of ImageMagick:
$ import -window root root.png
from 瀚海星云 |
|