Android. 9 Making of pictures

Source: Internet
Author: User
Android. 9PNG picture Maker

In the process of Android development, we often because there is no good art image distortion, so that the interface looks less than a lot of, sometimes we would like to drawable-hdpi,ldpi,mdpi the different resolution of the image, so that although it can effectively avoid distorted images, But this one is the trouble two is that the picture resource is too big, so we use. 9 images,. 9 image format is a new stretch of the Android platform, but not yet true things.

In the Android SDK has already brought the tool, found in the Tools directory Draw9patch.bat, double-click Open, the PNG image to be made into the inside,

Place the mouse in a white border, click Left and drag, black lines appear

The area that is covered by the 1th black bar position to the right, indicating that only the right area is stretched when the picture is stretched vertically.

The area covered by the 2nd black bar position, indicating that only the lower side area is stretched when the picture is stretched horizontally.

Area 3rd Black bar position to the left, indicating the area in which the picture is displayed vertically (on the phone, mainly the text area)

4th the area covered by the black bar position, indicating the area in which the picture is displayed horizontally (on the phone is mainly the text area)

The area covered by the position where there is no black bar is left unchanged when the picture is stretched, and the three Red graphics area on the right shows the current stretch effect

After selecting a good area, click File-->save 9-path on the left and fill in the Save name.

Android. 9 Making of pictures

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.