In Androidstudio under Mac, the right-click PNG image selects "Create 9-patch-file" error: Illegalargumentexception:unknown image type 0, the picture in point 9 format is not created.
What do we do? Very simple, you can create it manually.
Copy the image you want to make in point 9 format to the destination folder, and named after the "picture name. 9.png" format, at this time the picture is a point 9 format picture, double-click it, you can enter the point 9 image production interface.
The editing rules are as follows:
Top line: The horizontal stretch area of the picture.
Left line: The vertical stretch area of the picture.
Bottom line: The horizontal display area of the content (that is, the area is not stretched)
Right line: Vertical display area of content (no stretch)
Press and hold the left key to drag to underline, and hold down shift to erase the dash.
Mac under Android Draw point 9 format PNG as well as resolve Illegalargumentexception:unknown image type 0 error