Reference: http://stackoverflow.com/questions/12709603/ mat-eclipse-memory-analyzer-how-to-view-bitmaps-from-memory-dump/12709604#12709604
The following is the test pass, as for the Gimp way, I did not experiment successfully.
1: Open the Inspector View of the mat, the more important is Mbuffer, Mwidth, Mheight
2:
MAT
Related object Right click Bitmap
mBuffer
field and select "Copy"-"Save Value to File", name of the file with An .rgba
extension.
You need to note bitmap width and height from mWidth
mHeight
and fields, which you can see in bitmap object.
have 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 View Picture Resources