Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 GPUImageGaussianSelectiveBlurFilter 中如何设置非图像模糊点?我尝试设置点 excludeCirclePoint 但一切都变得模糊。我想实现触摸手势并且触摸点保持良好,而其他图像变得模糊。
您必须将图像的左上角和右下角分配CGPoint给过滤器的excludeCirclePoint属性。CGPointMake(0, 0)CGPointMake(1, 1)
CGPoint
excludeCirclePoint
CGPointMake(0, 0)
CGPointMake(1, 1)
就像是:
GPUImageGaussianSelectiveBlurFilter *filter = [[GPUImageGaussianSelectiveBlurFilter alloc] init]; filter.excludeCirclePoint = CGPointMake(0.5, 0.5); // center