[Android Memory] Mat View Picture Resources

Source: Internet
Author: User
Tags imagemagick

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:

MATRelated 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.