#pragma mark - 高斯模糊 image图片 blur模糊度
```
- (UIImage *)blurryImage:(UIImage *)image withBlurLevel:(CGFloat)blur
{
___start_log___
CIImage *inputImage = [CIImage imageWithCGImage:image.CGImage];
CIFilter *filter = [CIFilter filterWithName:@"CIGaussianBlur"
keysAndValues:kCIInputImageKey, inputImage,
@"inputRadius", @(blur), nil];
CIImage *outputImage = filter.outputImage;
CIContext *context = [CIContext contextWithOptions:nil];
CGImageRef outImage = [context createCGImage:outputImage fromRect:[inputImage extent]];
return [UIImage imageWithCGImage:outImage];
}
```
复制 直接使用!
建议在线程中使用!