我们可以使用 Photoshop/GIMP 在九块 (9.png) 图像中创建黑线吗?
当我必须从完整图像(背景图像)创建九个补丁时,Android SDK工具draw9patch太慢了,因为它不允许从上到下快速绘制黑线(就像我们在Photoshop或Gimp中使用的那样),但我必须绘制每个像素。所以浪费时间。我想你知道我在说什么。
那么,有没有人尝试过在 Photoshop/GIMP 中绘制黑线并注意不要填充末端像素? Android SDK 会将它们视为常规 9 PNG 图像吗?
Android SDK tool draw9patch is soooo slow when I have to create a nine-patch from a full image (image for backgrounds) because it does not allow quick drawing of black line from top to bottom (like we are used in Photoshop or Gimp), but I have to paint each pixel. So waste of time. I think you know what I am talking about.
So, has anyone tried to draw black lines in Photoshop/GIMP taking care that you do not fill the end pixels? Will Android SDK treat them as a regular 9 PNG images?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
9.png 只是 .png - 您可以使用任何您喜欢的工具,只是 1px 边框必须是透明的或填充黑色,扩展名必须设置为 .9.png
9.png is just .png - You can use any of you favorite tool just 1px border must be transparent or filled with black and extension must be set to .9.png
有一个网络工具 - 简单的九补丁生成器 - 我发现它非常方便:
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html
There's this web tool - Simple Nine-patch Generator - which I find quite handy:
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html
我使用 Better9patch 工具,然后测试它们 SDK 的 9patch 工具。但如果你创建带有 1px 边框的 9patch,你应该用 PS 等工具修饰它们
I use Better9patch tool then I test them SDK's 9patch tool. But if you create 9patch with 1px border you should retouch them with PS or etc.. tools