# LBBlurredImage1 **Repository Path**: ld1122/lbblurred-image1 ## Basic Information - **Project Name**: LBBlurredImage1 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README LBBlurredImage ============ LBBlurredImage is an UIImageView category that permit to set an image and make this blurred. Here are an example of what you can achieve: ![](https://raw.github.com/lukabernardi/LBBlurredImage/master/Resources/SimulatorScreenshot.png) Installation & Use ============ ### Installation - Just grab the two file named `UIImageView+LBBlurredImage.h` & `UIImageView+LBBlurredImage.m` in the Additions group into your project and link with CoreImage.framework . - `#import "UIImageView+LBBlurredImage.h"` where you need it. ### Use ``` objective-c [self.imageView setImageToBlur:[UIImage imageNamed:@"example"] blurRadius:kLBBlurredImageDefaultBlurRadius completionBlock:^(NSError *error){ NSLog(@"The blurred image has been setted"); }]; ``` The generation of the blurred image is made on a background thread, for this reason a completion block is provided. The completionBlock is dispatched on the main thread when the image was generated and set to the UIImageView.