UIImage Category Allowing You To Easily Apply A Blur Effect To A Specific Area Of An Image

I’ve mentioned a few interesting projects inspired by the blurring effects added with iOS 7 specifically for adding blur effects into your apps such as this library for creating a dynamic blur effect and this library for creating a high-speed dynamic blur effect.

Here’s a UIImage category called UIImage-BlurredFrame that allows you to blur a specific area of  a UIImage.

To use UIImage-BlurredFrame you simply specify a frame and apply to the image like in this example from the readme:

UIImage *img = [UIImage imageNamed:@"myImage"];
CGRect frame = CGRectMake(0, img.size.height 200, img.size.width, img.size.height 200);

img = [img applyLightBluredAtFrame:frame];

And this image from the readme shows the result of running this blurring code:

uiimage_imageeffects

You can find UIImage-BlurredFrame on Github here.

UIImage-BlurredFrame was created from Apple’s WWDC 2013 Session 226.

A great library for applying a blur effect to your images easily.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: UIImage Category Allowing You To Easily Apply A Blur Effect To A Specific Area Of An Image

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *