Replace all white/nearly white pixels in a UIImage with alpha using CGImage?

Posted by Peter Hajas on Stack Overflow See other posts from Stack Overflow or by Peter Hajas
Published on 2010-05-12T03:49:21Z Indexed on 2010/05/12 3:54 UTC
Read the original article Hit count: 396

Hi there,

I have a UIImage with white background. I would like replace the white background/pixels with alpha-transparent pixels. I've looked at other questions on StackOverflow, along with Quartz documentation, but have yet to find a coherent "start-to-end" for this problem. How is this done?

© Stack Overflow or respective owner

Related posts about uiimage

Related posts about cgimage