For programmers, especially the front-end design designer, nine Gongge picture is necessary (. 9.png), for beginners do not know this nine Gongge picture what is the use, in fact, this nine Gongge pictures actually commonly used in Android button components, to up and down the background image.
Tools/Materials
Method/Step
The first step: first to find Draw9patch.bat, my E:\program\Program files\android-sdk\tools\draw9patch.bat, under this path. For different people presumably the path of Android installation is different, and the same is the "\android-sdk\tools\draw9patch.bat" this path.
The second step: double-click the mouse draw9patch.bat open it, open it will pop up Cmd.exe and draw 9-patch.
Step three: Click "File" in Draw 9-patch, then select "Open 9-patch" and then select a picture (here I select the Line.png on the desktop).
Fourth step: Click on the mouse to point out the two lines, and then you can see the icon on both sides of the black line, if you want to stretch the part will be part of black on the line, the concrete can see the picture below.
Fifth step: Press "Ctrl+s" to save, I now save on the desktop, on the desktop can see this line.9.png picture.
How Android makes nine pictures (. 9.png)