如何添加外发光为位图? [英] How to add outer glow to bitmap?

查看:116
本文介绍了如何添加外发光为位图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找创造这样的事情: http://imm.io/Bcco

I'm looking for to create something like this: http://imm.io/Bcco

外发光+图像周围的空白。我已经看到如何使周围的位图光晕效果?。但有只要没有确凿的答案。

The outer glow + the white space around the image. I've already seen How to make glow effect around a bitmap?. But there was no conclusive answer provided there.

我愿意考虑hackish的解决方案,如果这是唯一的选择。

I'm willing to consider a hackish solution if that's the only option.

推荐答案

请9补丁PNG是与它周围的外部阴影与内容标记(右下)是白色部分内框。然后设置到任何元素的背景要在添加阴影。这是一个我刚才说,可以使用或会给你做什么想法的。

Make a 9-patch png that is a box with an outer shadow around it with the content marks (right and bottom) be inside the white part. Then set that to the background of whatever element you want to add the shadow to. Here is one that I made just now that you can use or will give you and idea of what to do.

如果您不熟悉 9补丁图像读到他们在这里

注意:您需要保存它作为something.9.png

您可以将其放到draw9patch,如果你需要更多或更少的空白调整两侧。

you can drop it into draw9patch and adjust the sides if you need more or less whitespace.

这篇关于如何添加外发光为位图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆