#if 0GPUImageGaussianBlurFilter *gaussianBlurFilter = [[GPUImageGaussianBlurFilter alloc] init];
[gaussianBlurFilter forceProcessingAtSize:CGSizeMake(200,300)];
[gaussianBlurFilter useNextFrameForImageCapture];//获取数据源
GPUImagePicture *stillImageSource = [[GPUImagePicture alloc]initWithImage:inputImage];//添加上滤镜
[stillImageSource addTarget:gaussianBlurFilter];//开始渲染
[stillImageSource processImage];//获取渲染后的图片
UIImage*newImage = [gaussianBlurFilter imageFromCurrentFramebuffer];//加载出来UIImageView*imageView = [[UIImageViewalloc] initWithImage:newImage];
imageView.frame= CGRectMake(50,50,200,300);
[self.viewaddSubview:imageView];#endif
网友评论