Mac OSX 上如何擷取螢幕?
Mac OS X 內建的 Screen Shot 熱鍵超好用,不需要安裝其他軟體,就能滿足各種快速抓圖的需求。
如果要抓取整個視窗畫面,多按一個空白鍵切換成視窗選取模式,這樣就不會抓到視窗以外的內容,而且抓圖後還會自動將背景設為透明化、並加上陰影,效果真的非常棒!
對於進階使用者,想要在程式或 Shell Script 中自動抓圖,則可以搭配 Mac OS X 內建的「screencapture」指令:
# 直接抓取整個畫面存檔
screencapture ~/screenshot.png
# 抓取單一視窗畫面
screencapture -w ~/screenshot.png
# 抓取單一視窗畫面、背景不要加陰影
screencapture -ow ~/screenshot.png
其他參數可以參考:
-c force screen capture to go to the clipboard
-C capture the cursor as well as the screen. only in non-interactive modes
-d display errors to the user graphically
-i capture screen interactively, by selection or window
control key - causes screen shot to go to clipboard
space key - toggle between mouse selection and
window selection modes
escape key - cancels interactive screen shot
-m only capture the main monitor, undefined if -i is set
-M screen capture output will go to a new Mail message
-o in window capture mode, do not capture the shadow of the window
-P screen capture output will open in Preview
-s only allow mouse selection mode
-S in window capture mode, capture the screen not the window
-t<format> image format to create, default is png (other options include pdf, jpg, tiff and other formats)
-T<seconds> Take the picture after a delay of <seconds>, default is 5
-w only allow window selection mode
-W start interaction in window selection mode
-x do not play sounds
-a do not include windows attached to selected windows
-r do not add dpi meta data to image
-l<windowid> capture this windowsid
-R<x,y,w,h> capture screen rect
files where to save the screen capture, 1 file per screen
- Command + Shift + 3
抓取整個螢幕畫面並儲存到桌面 - Command + Shift + 4
選擇一個畫面區域後儲存到桌面 - Command + Shift + 4、放開、再按空白鍵
選取一個視窗後儲存到桌面 - Command + Control + Shift + 3
Command + Control + Shift + 4
Command + Control + Shift + 4、放開、再按空白鍵
功能同上;但多一個 Control 鍵,會儲存到剪貼簿而不直接存檔
如果要抓取整個視窗畫面,多按一個空白鍵切換成視窗選取模式,這樣就不會抓到視窗以外的內容,而且抓圖後還會自動將背景設為透明化、並加上陰影,效果真的非常棒!
對於進階使用者,想要在程式或 Shell Script 中自動抓圖,則可以搭配 Mac OS X 內建的「screencapture」指令:
# 直接抓取整個畫面存檔
screencapture ~/screenshot.png
# 抓取單一視窗畫面
screencapture -w ~/screenshot.png
# 抓取單一視窗畫面、背景不要加陰影
screencapture -ow ~/screenshot.png
其他參數可以參考:
-c force screen capture to go to the clipboard
-C capture the cursor as well as the screen. only in non-interactive modes
-d display errors to the user graphically
-i capture screen interactively, by selection or window
control key - causes screen shot to go to clipboard
space key - toggle between mouse selection and
window selection modes
escape key - cancels interactive screen shot
-m only capture the main monitor, undefined if -i is set
-M screen capture output will go to a new Mail message
-o in window capture mode, do not capture the shadow of the window
-P screen capture output will open in Preview
-s only allow mouse selection mode
-S in window capture mode, capture the screen not the window
-t<format> image format to create, default is png (other options include pdf, jpg, tiff and other formats)
-T<seconds> Take the picture after a delay of <seconds>, default is 5
-w only allow window selection mode
-W start interaction in window selection mode
-x do not play sounds
-a do not include windows attached to selected windows
-r do not add dpi meta data to image
-l<windowid> capture this windowsid
-R<x,y,w,h> capture screen rect
files where to save the screen capture, 1 file per screen
留言
張貼留言