Colorize a gray scale image
In this little app I'm working on, I need a bunch of buttons, each with its own color. One way, of course, is to make background images for those buttons in Photoshop and include them in the project. But I was thinking to cut down on the size of the executable file and go this route:
1. Make a gray scale image of a button's background (with reflections, etc) in Photoshop and save it as PNG.
2. Include only that gray scale PNG into my Xcode project and work with it.
So the question is, how do I dynamically "colorize" a gray scale image loaded in UImage? Is it possible at all? Or, if not, is there any way to change "hue" and "saturation" on an image?
MacBook Pro 17", 2.66 GHz i7, 4GB 1067 DDR3 RAM, OS X 10.6.4 /// iPhone 4, 32GB, iOS 4