以当前的屏幕截图 [英] Taking Screenshot of Current screen

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

问题描述

我的工作在Android上的应用程序,这将共享屏幕到另一个机器人device.This应用程序会在后台作为服务运行。

I am working on an application on Android which will share the screen to another android device.This app will run in background as service.

我想捕捉的画面(当前画面),将其保存为JPEG和continously它通过UDP发送到其他Android设备。

I want to capture the screen (current screen),save it as JPEG and continously send it over UDP to other Android device.

但我的问题是如何通过捕获帧缓冲区捕捉当前画面。

But my problem is how to capture the current screen by capturing framebuffer .

请帮忙。

推荐答案

您可以通过启用采取的布局截图

You can take the screenshot of a layout by enabling

setDrawingCacheEnabled(true);

视图。

勾选此<一个href="http://$c$crzheaven.com/2011/10/how-to-create-screenshot-of-application-and-store-it-in-sdcard/"相对=nofollow>链接

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

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