屏幕捕捉使用本地API? [英] Screen capture using native APIs?

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

问题描述

是否有任何原生API(C code)如冰淇淋三明治,我可以用它来捕捉整个屏幕?我需要它是在C程序中进行,而不是使用亚洲开发银行或Java接口。

Are there any native APIs (C code) in Ice Cream Sandwich that I can use to capture the entire screen? I need it to be done inside a C program, not using adb or Java interfaces.

推荐答案

androidscreenshot 项目正是这么做的,但您将需要以root身份运行,或有你的二进制由厂商密钥(即相同的密钥编译OS时使用)签署。有很多关于这个限制这里和其他地方在互联网上的讨论。

The androidscreenshot project does exactly that, but you will need to run as root or have your binary signed by the vendor key (i.e. the same key that was used when compiling the OS). There are plenty of discussions about this restriction here and elsewhere on the Internet.

这篇关于屏幕捕捉使用本地API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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