About android‑produced .9.png images,

Source: Internet
Author: User

About android‑produced .9.png images,

The first question is, what is the problem between. 9 and our previous general images?

This is a special image in Android development. Images in this format can be adjusted automatically in the android environment. (1) developers are allowed to define extensible areas. When you need to extend an image to fill a region larger than the image itself, the content of the expanded area is extended. (2) allow developers to define content display areas for displaying text or other content.

Question 2: What is the use of .9.png images?

This is a big use. For example, the simplest use is to use the background image wrapped in the text in the frame. 9 format pictures can be scaled with the amount of text, both beautiful and practical!

Third, is it difficult to use this format?

It is very easy to use, because the draw9patch. bat file under the tools directory created by our Android development can help us complete the development of. 9 format images.Note: To use this bat file, you must first configure the java environment variable in your computer environment!

Open the draw9patch. bat file and we can see the following interface:

Click file-open to open the image you want to edit. The following page is displayed:

Place the mouse on the white border and click the left button without dragging. Black lines will appear, indicating that the area can be stretched. The area where the image is not covered by black bars remains unchanged when it is stretched (for example, if the four corners of the image are curved, when the image is stretched randomly, the arc shapes of the four corners do not change.) If you select multiple parts by mistake, you can press the shift key and click the left mouse button to remove the black ones.

After selecting the region, click file-save 9-pathon the top left to save the image with the suffix xxx.9.png,

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.