Android memory analysis tool MAT: Export Bitmap, androidmat

Source: Internet
Author: User

Android memory analysis tool MAT: Export Bitmap, androidmat
For more information about MAT use, see blog: http://blog.csdn.net/nupt123456789/article/details/42584269
1. First Open the Inspector page of MAT, which is: Open Window> ShowView> Other...> Inspector in Eclipse.
2. Select the image object android. graphics. Bitmap and view the image information in Inspector, for example:

We need to note that the parameters are mHeight and mWidth, that is, the image height and width.
3. Export the mBuffer data of Bitmap and save it as xxxx. data. For example:
 
At this point, we have obtained the image data file xxxx. data and the image's width and height mWidth and mHeight. The next step is to use tools to convert the data into images.
 
4. Download GIMP software, mac: http://gimp.lisanet.de/Website/Download.html
5. run GIMP, "file"-> "open", and select the previously saved xxxx. data File, click open, modify the parameters according to mWidth and mHeight, and select "RGB Alpha" for the image type"
If it cannot be enabled correctly, adjust other parameters.


-------------------------------------------------------------------
For more information, the Android Development Alliance's QQ group: 272209595

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.