开发者

How to color an image?

开发者 https://www.devze.com 2023-01-28 01:37 出处:网络
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. T

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

精彩评论

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

关注公众号