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,