【问题标题】:How to blur UIImage excluding specific point.如何模糊 UIImage 不包括特定点。
【发布时间】:2012-09-13 07:39:27
【问题描述】:

在GPUImageGaussianSelectiveBlurFilter中如何设置非图像模糊点?我尝试设置点 excludeCirclePoint 但一切都变得模糊。我想实现触摸手势,并且触摸点保持良好,而其他图像变得模糊。

【问题讨论】:

    标签: objective-c ios cocoa-touch instagram gpuimage


    【解决方案1】:

    您必须将CGPoint 分配给过滤器的excludeCirclePoint 属性,其中CGPointMake(0, 0) 是图像的左上角,CGPointMake(1, 1) 是右下角。

    类似:

    GPUImageGaussianSelectiveBlurFilter *filter = [[GPUImageGaussianSelectiveBlurFilter alloc] init];
    filter.excludeCirclePoint = CGPointMake(0.5, 0.5); // center
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-24
      • 2015-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多