android 4.0 屏幕如何屏幕截图

屏幕截屏汉化版1.97 | 最安全的安卓游戏、安卓软件下载站 | 安卓市场,安卓软件,安卓游戏,安卓网,安卓论坛,安卓刷机,安卓应用,android软件,android游戏,play
store,android4.0,android5.0
屏幕截屏汉化版
屏幕截屏汉化版
926,076次下载
本软件已通过
大小:466.00 KB
适用:1.5及其以上
1.51.62.02.0.12.12.22.3.12.3.32.3.43.03.13.24.04.0.3
最近一天25,629人下载
最近一天1,951人下载
最近一天1,370人下载
最近一天826人下载
最近一天87人下载
最近一天53人下载
手机助手快速安装:
修改/删除 SD 卡内容
完全的互联网访问权限
读取手机状态和身份
控制振动器
开机时自动启动
喜欢 屏幕截屏汉化版 的网友还喜欢
安卓网友:elvis
还是要权限的……
安卓网友:guyuzhang
(当前版本)
很好用!!!推荐
安卓网友:啊q宝宝
(当前版本)
有一次是没有出现其他的几张都有一句“屏幕截屏,已获取最高权限
安卓网友:snowind8
大型游戏截图效果不行,反应迟钝还有可能花屏!
安卓网友:woola
很好用!可以立刻查看很方便!
安卓网友:daydreamer
以前很好用,后来不知道为什么截完后不能即时显示图片了
安卓网友:fenhot9878
垃圾 保存路径太难找了
安卓网友:Caba1a
非常好用!
安卓网友:2660人阅读
截取屏幕的工作原理
&&&&&&&&&&& 读缓冲区--》生成可压缩位图--》压缩位图--》生成PNG格式文件
截屏的开源项目地址:
public void acquireScreenshot(Context mContext) {
DisplayMetrics metrics = new DisplayMetrics();
WindowManager WM = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);
Display display = WM.getDefaultDisplay();
display.getMetrics(metrics);
int height = metrics.heightP // 屏幕高
int width = metrics.widthP // 屏幕的宽
int pixelformat = display.getPixelFormat();
PixelFormat localPixelFormat1 = new PixelFormat();
PixelFormat.getPixelFormatInfo(pixelformat, localPixelFormat1);
int deepth = localPixelFormat1.bytesPerP// 位深
byte[] arrayOfByte = new byte[height* width* deepth];
long tmp = System.currentTimeMillis();
InputStream localInputStream = readAsRoot(new File(
&/dev/graphics/fb0&));
DataInputStream localDataInputStream = new DataInputStream(
localInputStream);
android.util.Log.e(&mytest&, &-----read start-------&);
localDataInputStream.readFully(arrayOfByte);
android.util.Log.e(&mytest&, &-----read end-------time = &
+ (System.currentTimeMillis() -tmp ));
localInputStream.close();
FileOutputStream out = new FileOutputStream(new File(
&/mnt/sdcard/1.png&));
int[] tmpColor = new int[width * height];
tmp = System.currentTimeMillis();
android.util.Log.e(&mytest&, &-----bitmap start-------&);
for (int j = 0; j & width * height * j+=deepth) {
b = arrayOfByte[j]&0
g = arrayOfByte[j+1]&0
r = arrayOfByte[j+2]&0
tmpColor[j/deepth] = (r && 16) | (g && 8) | b |(0xff000000);
Bitmap tmpMap = Bitmap.createBitmap(tmpColor, width, height,
Bitmap.Config.ARGB_8888);
android.util.Log.e(&mytest&, &-----bitmap end-------time = &
+ (System.currentTimeMillis() -tmp ));
tmp = System.currentTimeMillis();
android.util.Log.e(&mytest&, &-----compress start-------&);
pressFormat.PNG, 100, out);
android.util.Log.e(&mytest&, &-----compress end-------time = &
+ (System.currentTimeMillis() -tmp ));
out.close();
} catch (Exception e) {
android.util.Log.e(&mytest&, &Exception&);
e.printStackTrace();
public static InputStream readAsRoot(File paramFile) throws Exception {
Process localProcess = Runtime.getRuntime().exec(&su&);
String str = &cat & + paramFile.getAbsolutePath() + &\n&;
localProcess.getOutputStream().write(str.getBytes());
return localProcess.getInputStream();
版权声明:本文为博主原创文章,未经博主允许不得转载。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:48381次
排名:千里之外
原创:52篇
转载:29篇
(3)(1)(2)(1)(3)(1)(1)(3)(1)(2)(1)(1)(2)(1)(2)(2)(4)(2)(3)(2)(5)(4)(2)(7)(2)(2)(1)(1)(4)(2)(3)(4)(5)米茄手机论坛,安卓系统4.0的秘密 自带有截屏功能_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
米茄手机论坛,安卓系统4.0的秘密 自带有截屏功能
米​茄​手​机​论​坛​,​安​卓​系​统.的​秘​密​ ​自​带​有​截​屏​功​能
阅读已结束,如果下载本文需要使用
想免费下载本文?
你可能喜欢Android 4.0新UI解析 支持截屏新后台已经浏览完,您还可以:
图中的产品信息
参考价格:
屏幕尺寸:4.65英寸操作系统:Android OS 4.0手机外观:直板
三星I9250(GALAXY Nexus)相关图片

我要回帖

更多关于 android 4.0 屏幕 的文章

 

随机推荐