UIImage change raw pixels from white to clear?

Posted by christo16 on Stack Overflow See other posts from Stack Overflow or by christo16
Published on 2010-04-16T03:49:17Z Indexed on 2010/04/16 3:53 UTC
Read the original article Hit count: 375

Filed under:
|
|

I've tried some code from each of these questions:

How to make one color transparent on a UIImage?

How to mask a UIImage so that white becomes transparent on iphone?

but have come up unsuccessful, unfortunately working with Core Graphics and images is not my strong suit.

How would I go about accessing a UIImage's raw data and changing the white pixels to clear?

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiimage