Take Screenshot with Tizen SDK

◇◆丶佛笑我妖孽 提交于 2020-01-05 10:24:05

问题


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.


回答1:


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

What it does?

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

; - separator between bash commands




回答2:


The method can be found here. There is no graphic method currently according to the Tizen IRC channel. http://seoz.egloos.com/3940763




回答3:


If you are using the Tizen emulator, you can take a screen capture by right-clicking on the emulator then select [Advanced] > [Screen Shot].

If you are using Tizen device, push the power button and the volume down button at the same time.



来源:https://stackoverflow.com/questions/16292047/take-screenshot-with-tizen-sdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!