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!

Answers


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.


Need Your Help

Difficulty getting flup fcgi script to work

python django fastcgi flup

I'm building a site for a client using django. It's been hosted on shared hosting and mod_wsgi can't be used. In the old year, I got it working using fcgi, but when I got back, it was broken.

Actionscript to haXe

flash actionscript converter haxe

Is it possible to convert Actionscript 3 to haXe? I have seen a converter on the haXe website but I have no idea on how to use it! All it is, is a bunch of code which I am not understanding. If som...