Reputation: 1082
I know how to blur a whole image, but I just want to blur a part of the image like the face. Answers are appreciated. Thanks!
Upvotes: 2
Views: 1852
Reputation: 1082
Just to close this thread, I used both @Anshu's and @Michael's suggestions. Here are my steps:
Upvotes: 4
Reputation: 29508
This should get you started: https://github.com/tomsoft1/StackBluriOS ?
You could look inside the UIImage+Stack implementation and use what you find there to make a version of this method that blurs a specific section of your image.
Something like:
- (UIImage*) stackBlur:(NSUInteger)inradius insideRect:(NSRect)rect;
Hint: the code from line #166 is where the blur class starts looping over the image pixels and blurring them.
Upvotes: 3