码迷,mamicode.com
首页 > 移动开发 > 详细

[ Android Memory] MAT查看图片资源

时间:2014-10-09 15:22:24      阅读:277      评论:0      收藏:0      [点我收藏+]

标签:android   blog   http   io   ar   for   sp   2014   on   

参考: http://stackoverflow.com/questions/12709603/mat-eclipse-memory-analyzer-how-to-view-bitmaps-from-memory-dump/12709604#12709604

以下是测试通过的,至于GIMP方式,我没有实验成功。

1: 打开mat的inspector视图,比较重要的是mBuffer,  mWidth, mHeight

bubuko.com,布布扣

2:  

In MAT for related Bitmap object right click mBuffer field and select "Copy" -> "Save Value To File", name the file with an .rgba extension.

You need to note bitmap width and height from mWidth and mHeight fields, which you can see in Bitmap object.

Having ImageMagick command line tools installed (for Ubuntu apt-get install imagemagick), you issue convert command with the following parameters.

convert -size ‘width‘x‘height‘ -depth 8 filename.rgba filename.png

For example

 convert -size 680x1209 -depth 8 phone_decor.rgba phone_decor.png

 

[ Android Memory] MAT查看图片资源

标签:android   blog   http   io   ar   for   sp   2014   on   

原文地址:http://www.cnblogs.com/0616--ataozhijia/p/4013035.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!