树莓派实现截图

    技术2022-07-10  129

     

     

    1.安装截图软件

    sudo apt-get install scrot

    2.安装支持运行软件的shotwell

    sudo apt-get install shotwell

    3.截图命令

    截取整个屏幕:

    scrot

    指定截取图片的名字:

    scrot example.png

    截取部分图片:然后拖动要截图的区域

    scrot -s

    4.倒计时截图

    scrot -d 10 倒计时10秒截图。 scrot -cd 10 能够显示倒计时的时间

    例子:

    倒计时三秒截图,并存放在/home/pi/Pictures下,名字为111.png

    scrot -cd 3 /home/pi/Pictures/111.png

    选取区域截图,并保存在/home/pi/Pictures/111.png 

    scrot -s /home/pi/Pictures/111.png

     

    Processed: 0.009, SQL: 9