Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments