截取整个屏幕的截图 [英] Take Screenshot of whole screen

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

问题描述

我已经看到很多用于截取屏幕截图的代码片段,但无法获得截取整个屏幕的屏幕截图而不仅仅是视图的内容.它应该复制我们使用 ddms 获取屏幕截图的方式.

I have seen a lot of code snippets for taking a screenshot but was not able to get something which takes the screenshot of the whole screen and not just a view. It should replicate the way we get screenshot using ddms.

有人可以帮忙吗?

推荐答案

有一个 Android Screenshot 库,可用 此处.有维基页面说库可以用来截取整个屏幕的屏幕截图,而无需根级访问,即使是来自未签名的应用程序.我从来没有尝试过.您可以将其用作起点.

There is an Android Screenshot library, which is available here. There wiki pages says library can be used to take screenshot of entire screen without the need of root level access, even from an unsigned application. I have never tried it though. You can use it as a starting point.

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

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