#if 0// 部分清晰的高斯模糊GPUImageGaussianSelectiveBlurFilter *gaussianBlurFilter = [[GPUImageGaussianSelectiveBlurFilter alloc] init];
gaussianBlurFilter.blurRadiusInPixels=5;// 模糊的程度 默认:5[gaussianBlurFilter forceProcessingAtSize:inputImage.size];
[gaussianBlurFilter useNextFrameForImageCapture];//获取数据源
GPUImagePicture *stillImageSource = [[GPUImagePicture alloc]initWithImage:inputImage];//添加上滤镜[stillImageSource addTarget:gaussianBlurFilter];//开始渲染
[stillImageSource processImage];
gaussianBlurFilter.excludeCirclePoint= CGPointMake(150,150);// gaussianBlurFilter.excludeBlurSize = 300.0;gaussianBlurFilter.excludeCircleRadius=10;//获取渲染后的图片
UIImage*newImage = [gaussianBlurFilter imageFromCurrentFramebuffer];//加载出来UIImageView*imageView = [[UIImageViewalloc] initWithImage:newImage];
imageView.frame= CGRectMake(50,50,320,650);
[self.viewaddSubview:imageView];#endif
网友评论