码迷,mamicode.com
首页 > 移动开发 > 详细

ios 屏幕截图

时间:2015-06-26 19:34:30      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

 

    // 高斯模糊
    CIContext *context = [CIContext contextWithOptions:nil];
    CIImage *inputImage = [[CIImage alloc] initWithImage:image];
    CIFilter *filter = [CIFilter filterWithName:@"CIGaussianBlur"];
    [filter setValue:inputImage forKey:kCIInputImageKey];
    [filter setValue:@2.0f forKey: @"inputRadius"];
    CIImage *result = [filter valueForKey:kCIOutputImageKey];
    CGImageRef outImage = [context createCGImage: result fromRect:[result extent]];
    UIImage *blurImage = [UIImage imageWithCGImage:outImage];
    CGImageRelease(outImage);

 

   

 
 

ios 屏幕截图

标签:

原文地址:http://www.cnblogs.com/swu-luo/p/4602830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!