You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use -expand, you have to specify that both dimensions are 2px larger than the largest dimension of the original 9-patch image. For example, if the original is 642x962, running -expand 650x1000 will give an error:
$ 9pedit -expand 650x1000 -out out splash.9.png
Will save images to out
--> Processing file splash.9.png
- Image is 642x962 pixels
+ Expand 9-patch to 650x1000
Exception in thread "main" java.lang.IllegalArgumentException: Attempt to expand image by a negative amount
at net.rcode.npedit.NinePatchImage.expand(NinePatchImage.java:169)
at net.rcode.npedit.ExpandEditCommand.performEdit(ExpandEditCommand.java:23)
at net.rcode.npedit.NinePatchEdit.applyCommand(NinePatchEdit.java:161)
at net.rcode.npedit.NinePatchEdit.processFile(NinePatchEdit.java:144)
at net.rcode.npedit.NinePatchEdit.processFiles(NinePatchEdit.java:166)
at net.rcode.npedit.NinePatchEdit.main(NinePatchEdit.java:175)
The text was updated successfully, but these errors were encountered:
If you use -expand, you have to specify that both dimensions are 2px larger than the largest dimension of the original 9-patch image. For example, if the original is 642x962, running -expand 650x1000 will give an error:
The text was updated successfully, but these errors were encountered: