使用 Tizen SDK 截屏 [英] Take Screenshot with Tizen SDK

查看:34
本文介绍了使用 Tizen SDK 截屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 Tizen SDK 截取屏幕截图,类似于使用 Android SDK 截取屏幕截图?我发现最多的是在命令行上使用 sdb,但我更喜欢图形选项.

Is it possible to take a screenshot with the Tizen SDK similarly to taking one with the Android SDK? The most I've found is using sdb on the command line, but I'd much prefer a graphical option.

我在谷歌上搜索过,但相关结果很少.

I've googled around for this, but there have been very few relevant results.

推荐答案

如果你需要像点击这样的东西.您可以使用以下一行命令:

If you need something quck like click. you can use following one line command:

cd ~; fn=$(date "+ screen-%H-%M-%S"); sdb shell xwd -root -out /tmp/"$fn".xwd;  sdb pull /tmp/"$fn".xwd ~/;  convert "$fn".xwd  "$fn".png

它有什么作用?

cd ~                                     # go to you home directory
fn=$(date "+ screen-%H-%M-%S")           # create variable for file name in bash
sdb shell xwd -root -out /tmp/"$fn".xwd  # open shell and run command to save screenshot
sdb pull /tmp/"$fn".xwd ~/               # copy created file into your home directory
convert "$fn".xwd  "$fn".png             # converting xwd to png in your home

;- bash 命令之间的分隔符

; - separator between bash commands

这篇关于使用 Tizen SDK 截屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆