You can convert memory dumps from MAT to png using ImageMagick on the command line.
In MAT for the linked Bitmap object, right-click mBuffer and select Copy → Save Value To File, specify a file with the extension .rgba .
You need to note the width and height of the bitmap from the mWidth and mHeight , which you can see in the Bitmap object.
By installing ImageMagick command-line ImageMagick (for Ubuntu apt-get install imagemagick ), you issue the convert command with the following options.
convert -size 'width'x'height' -depth 8 filename.rgba filename.png
for example
convert -size 680x1209 -depth 8 phone_decor.rgba phone_decor.png
You can check the generated png file with eog , for example eog phone_decor.rgba on Ubuntu .
auselen Sep 09 '13 at 7:08 2013-09-09 07:08
source share