Recently needed to manually edit the pixels on a UIImage so i could apply, in my case, a colourising filter ("colorizing" for most of you reading this!)
Anyway, couldn't find many good tuts on the web, so here we go with my code. Tested and works great in xcode 4.2 / iphone.
Here's my end result. You may recognise a yamaha FZ1N. Lovely bike, wish i'd never sold it:
[[posterous-content:zcsCjEBmvoFkaJktCgqE]]
And here's the code:
Thanks for reading! And if you want to get in touch, I'd love to hear from you: chris.hulbert at gmail.
(Comp Sci, Hons - UTS)
Software Developer (Freelancer / Contractor) in Australia.
I have worked at places such as Google, Cochlear, Assembly Payments, News Corp, Fox Sports, NineMSN, FetchTV, Coles, Woolworths, Trust Bank, and Westpac, among others. If you're looking for help developing an iOS app, drop me a line!
Get in touch:
[email protected]
github.com/chrishulbert
linkedin