我知道在 ubuntu 中,我可以使用屏幕截图应用程序,使用该应用程序我可以对选定的窗口进行屏幕截图。这意味着 ubuntu 上已经有该应用程序了。该应用程序的命令行命令是什么?(我知道 gnome-screenshot 可以让我们截取整个屏幕截图,但我想在截图时选择一个区域。)
答案1
为了获取窗口的屏幕截图,请使用此命令
gnome-screenshot -w
为了抢占一个区域,请使用此命令
gnome-screenshot -a
这是来源链接http://manpages.ubuntu.com/manpages/bionic/man1/gnome-screenshot.1.html
-c, --clipboard
Send the grab directly to the clipboard.
-w, --window
Grab the current active window instead of the entire screen.
-a, --area
Grab an area of the screen instead of the entire screen.
-b, --include-border
Include the window border within the screenshot.
-B, --remove-border
Remove the window border from the screenshot.
-p, --include-pointer
Include the pointer with the screenshot.
-d, --delay=SECONDS,
Take the screenshot after the specified delay [in seconds].
-e, --border-effect=EFFECT,
Add an effect to the outside of the screenshot border. EFFECT can be ``shadow''
(adding drop shadow), ``border'' (adding rectangular space around the screenshot)
or ``none'' (no effect). Default is ``none''.
-i, --interactive
Interactively set options in a dialog.
-f, --file=FILENAME
Save screenshot directly to this file.
--display=DISPLAY
X display to use.
-?, -h, --help
Show a summary of the available options.