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