The. 9.PNG is indeed the standard PNG format, except for an extra 1px border on the outermost lap, the 1px border is used to define the extensible and static invariant areas of the image. In particular, thecross-section of the left and top borders is an extruded part, and the unselected part is the static area section. The cross-section of the right and bottom borders is the content part (the other part is equivalent to an inner margin, the spirit padding function), this parameter is optional.
See:
http://blog.csdn.net/lizzy115/article/details/7950959
Draw9patch.bat Other function description
①Zoom: Used to scale the size of the editing area on the left
②Patchscale: Used to zoom the size of the right preview area
③ ShowLock: Displays non-editable regions when the mouse is in the picture area
④ ShowPatches: Show the area of the picture Stretch in the editing area (marked with pink)
⑤Show content: Displays the contents area of the picture in the preview area (marked with light purple)
⑥Show Bad patches: In a red border around the stretched area, the area that may deform the extruded picture is displayed, and if it is completely eliminated, the picture is not deformed after stretching, that is, no matter how the picture is scaled, the display is good. (The actual experiment found that the Ninepatch editor is based on the color value of the image to distinguish whether it is bad patch, and as long as the chromatic aberration is not too large, do not consider this setting.) )
See:
http://my.oschina.net/u/1175007/blog/484589
Android 9 diagram of the production