GPUImage 高斯模糊的使用
2016-07-19 本文已影响116人
瑞廷
GPUImageGaussianBlurFilter *blurFilter = [[GPUImageGaussianBlurFilter alloc] init];
blurFilter.blurRadiusInPixels = 2.0;
UIImage * image = [UIImage imageNamed:@"***"];
UIImage *blurredImage = [blurFilter imageByFilteringImage:image];
self.imageView.image = blurredImage;
很简单哦