GUPImage实现毛玻璃效果
GPUImageGaussianBlurFilter * blurFilter = [[GPUImageGaussianBlurFilter alloc] init];
blurFilter.blurRadiusInPixels = 10.0;//设置渲染值,该值越大越模糊
UIImage *blurredImage = [blurFilter imageByFilteringImage:image];
self.iconBG.image = blurredImage; //将渲染后的image赋给UIImageView
发表回复