masking a UIImage
Posted
by iworkinprogress
on Stack Overflow
See other posts from Stack Overflow
or by iworkinprogress
Published on 2010-05-05T21:00:27Z
Indexed on
2010/05/08
4:18 UTC
Read the original article
Hit count: 334
I'm working on an app that can change the borders or a rectangular UIImage. The borders will vary, but will look like the UIImage was cut out with scissors, or something to that affect.
What is the best way to do this?
My first thought is to prep a bunch of transparent PNGs with the correct border effect I'm looking for, and then somehow use that as a mask for my UIImage. Is this the right path? Or is there a more flexible programmatic way to do this?
© Stack Overflow or respective owner