UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(100, 480, 120, 20)];
lab.text = @"滤镜信息";
lab.font = [UIFont systemFontOfSize:20];
lab.textColor = [UIColor redColor];
lab.backgroundColor = [UIColor clearColor];
UIView *view = [[UIView alloc] initWithFrame:self.view.bounds];
[view addSubview:lab];
GPUImageUIElement *uiElement = [[GPUImageUIElement alloc] initWithView:view];
UIImage *inputImage = [UIImage imageNamed:@"Lambeau.jpg"];
GPUImageFilter *disFilter = [[GPUImageFilter alloc] init];
[disFilter forceProcessingAtSize:inputImage.size];
[disFilter useNextFrameForImageCapture];
GPUImagePicture *sourcePicture = [[GPUImagePicture alloc] initWithImage:inputImage];
[sourcePicture addTarget:disFilter];
GPUImageAlphaBlendFilter *_filter = [[GPUImageAlphaBlendFilter alloc] init];
_filter.mix
GPUImage图片添加水印
最新推荐文章于 2019-08-31 08:56:07 发布