Android / Eclipse:如何修剪非方形 png 文件的环绕?
我想在我的应用程序中使用不带环绕的 png 图标(它不是正方形)。我用图像编辑器制作了具有透明背景的文件,之后我在 Eclipse 中使用了“新建 -> 其他 -> Android 图标集 -> 启动器图标”向导。 “配置图标集”面板中有一个选项,称为“修剪周围空白空间”,但它不可用(灰色)。我怎样才能打开这个选项?如何关闭此向导中的背景颜色?
I'd like to use a png icon in my app without surround (it's not a square). I made the file with transparent background with an image editor, after that I used "New -> Other -> Android Icon Set -> Launcher Icons" wizard in Eclipse. There is in "Configure Icon Set" panel an option, called "Trim Surrounding Blank Space", but it isn't useable (gray). How can i switch on this option? How can I switch off the background color in this wizard?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也尝试过这个,但我做不到。在谷歌中寻找它是浪费时间,因为什么也没有。我的最终解决方案是使用 GIMP,然后创建 4 个图像,每个图像都调整了原始图像的大小,以便以相同的比例填充新图像。之后,我将图像保存在各自的文件夹中(在 res/drawable- 内)。它们的尺寸为:
I also tried this but I couldn't do it. Looking for it in google is a waste of time because there's nothing. My final solution was to use GIMP and then create 4 images, each one with my original image resized to fill the new image with the same proportions. After it I saved the images in their respective folders(inside res/drawable-). The size of them were: