首页 > 代码库 > [ Android Memory] MAT查看图片资源
[ Android Memory] MAT查看图片资源
参考: 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
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查看图片资源
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。