保存或打印屏幕截图的解释 [英] Saving or printing screen screenshot explanation

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

问题描述

如何保存应用程序的屏幕截图或搜索无线打印机和打印应用程序屏幕?

How to save screenshot of the application screen or search for a wifi printer and print the application screen?

推荐答案

要保存屏幕快照:

View view=mTextView.getRootView(); /*mTextView is a textview on my screen. Instead you can take any of your views(imageview, textview or even button)*/
view.setDrawingCacheEnabled(true);
Bitmap bmp=view.getDrawingCache();

现在,您保存位图文件,以保存它。

Now, you save bitmap to a file to save it.

编辑:
我想知道,如果你不问编程的方式?如果您正在寻找手动方式,拉吉的回答可以帮助你。

I wonder if you are not asking about programmatic way? If you are looking for manual way, Raj's answer may help you.

这篇关于保存或打印屏幕截图的解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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