I'm trying to add a stroke/border and a drop shadow around the non transparent pixels of a UIImage.
The goal is to get something that looks like this:
I've tried several things and am still trying to figure out exactly how to accomplish this.
In general I've tried:
Adding a shadow to the UIImageView. (Shadow works, stroke/border is a rectangle instead of tracing out the non transparent pixels in the face. In addition I want to save the result as a UIImage (not have it just display on the UIImageView))
Adding a shadow to UIImage (Slow and not sure how to add a border here).
Help is greatly appreciated! Thanks!