Почему команда "screencapture -R0,0,5,5" не создает изображение 5x5, а создает изображение 10x10?

В Mac OS X Yosemite следующая команда не создает изображение 5x5, но создает изображение 10x10. Зачем? Я хочу сделать скриншот 5х5.

screencapture -t bmp -R0,0,5,5 ~/Desktop/hogehoge.bmp

А вот и свойства изображения. Там написано "Размеры:10х10". Я что-то пропустил?

2 ответа

Возможно, у вас есть дисплей Retina (если у вас MacBook Pro Retina или Retina 27" iMac). Это означает, что обычный пиксель сохраняется в виде четырех пикселей.

Смотрите https://en.wikipedia.org/wiki/Retina_Display

very attractive work.
     ( The option -R don't exists  in screencapture)

      Another very simple choice with the options -s -c it's to capture with the mouse and to copy out in the clipboard

     do shell script " /usr/sbin/screencapture -s -c "

tell application "System Events" to tell process "Finder"
    set frontmost to true
    click menu item "Show Clipboard" of menu "Edit" of menu bar 1
end tell
Другие вопросы по тегам