.9格式的png图片用什么工具创建?

软件和网站开发以及相关技术探讨
回复
头像
驿窗project
帖子: 225
注册时间: 2019-01-17 12:17
系统: Arch/Debian
联系:

.9格式的png图片用什么工具创建?

#1

帖子 驿窗project » 2022-10-29 21:17

我在debian上安装了android studio,能够运行,但里面没找到draw9patch这个工具。

这个工具咋弄出来?或者有什么别的工具能够创建.9格式的png图片?
头像
astolia
论坛版主
帖子: 6454
注册时间: 2008-09-18 13:11

Re: .9格式的png图片用什么工具创建?

#2

帖子 astolia » 2022-10-30 9:21

5年前就从sdk tools里踢出去了。你要单独下载的话可以从这里 https://androidstudio.io/downloads/tool ... h.jar.html

之后的android studio直接集成了这个功能,直接在导入的png文件上右键选Create 9-patch file.
头像
驿窗project
帖子: 225
注册时间: 2019-01-17 12:17
系统: Arch/Debian
联系:

Re: .9格式的png图片用什么工具创建?

#3

帖子 驿窗project » 2022-10-31 10:45

果然可以,这个工具正合我用!
头像
gulshan212
帖子: 8
注册时间: 2022-12-30 14:04
系统: Windows 10
来自: Haldwani, Uttarakhand (India)
联系:

What tools are used to create png images in .9 format?

#4

帖子 gulshan212 » 2023-07-03 13:59

Hello this is Gulshan Negi
Well, you can use the draw9patch tool in the tools directory to use an older version of the Android SDK prior to Android Studio 3.2 if you prefer to use a standalone tool. This tool allows you to manually draw the stretchable areas and content area for the 9-patch image.
Thanks
回复