Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何模糊图像,排除特定点。_Objective C_Ios_Cocoa Touch_Instagram_Gpuimage - Fatal编程技术网

Objective c 如何模糊图像,排除特定点。

Objective c 如何模糊图像,排除特定点。,objective-c,ios,cocoa-touch,instagram,gpuimage,Objective C,Ios,Cocoa Touch,Instagram,Gpuimage,在GPUImageGaussianSelectiveBlurFilter中,如何设置非图像模糊点?我试着设置点excludeCirclePoint,但一切都变得模糊了。我想实现触摸手势,当其他图像变得模糊时,触摸点保持良好。您必须将CGPoint指定给过滤器的excludeCirclePoint属性,其中CGPointMake(0,0)是图像的左上角,CGPointMake(1,1)是右下角 比如: GPUImageGaussianSelectiveBlurFilter *filter = [[

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

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

比如:

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