模糊

作者: baihualinxin | 来源:发表于2018-05-07 09:50 被阅读0次

    #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

    相关文章

      网友评论

          本文标题:模糊

          本文链接:https://www.haomeiwen.com/subject/yeiccxtx.html