开发者

How to color an image?

I have a problem concerning an icon:

I have an icon (with transparency), which is black. For different uses I want to color it to blue (for example). Originally the icon was made to fit a UITabbar. There the color of the shape is colored to blue as开发者_运维知识库 well, when selected.

This is what I want to reach. Has anyone a possible solution?

Thanks!


Sounds like you want to do a color blend. My fork of MGImageUtilities should provide what you want. It can take your black icon and color all the visible pixels blue without affecting the alpha channel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜