- (void)displayAutoBeautyPage
{
[self setupImageView];
[self setupBar];
}
- (void)displayColorListPage
{
[self setupImageView];
[self setupBar];
[self setupSliderForColorList];
}
- (void)displayEditPage
{
[self setupImageView];
[self setupBar];
[self setupButtons];
}
if ([text isEqualToString:@"智能优化"])
{
FWFunctionViewController *vc = [[FWFunctionViewController alloc] initWithImage:self.image type:FWBeautyProcessTypeAutoBeauty];
[self presentViewController:vc animated:YES completion:^{
}];
[vc displayAutoBeautyPage];
}
else if ([text isEqualToString:@"增强"])
{
FWFunctionViewController *vc = [[FWFunctionViewController alloc] initWithImage:self.image type:FWBeautyProcessTypeColorList];
[self presentViewController:vc animated:YES completion:^{
}];
[vc displayColorListPage];
}
else if ([text isEqualToString:@"编辑"]) {
FWFunctionViewController *vc = [[FWFunctionViewController alloc] initWithImage:self.image type:FWBeautyProcessTypeEdit];
[self presentViewController:vc animated:YES completion:^{
}];
[vc displayEditPage];
// CGRect frame1 = CGRectMake(87.5, 550, 200, 20);
// [vc setupSliderWithFrame:frame1];
}e
+ (UIImage *)changeva lueForBrightnessFilter:(float)value image:(UIImage *)image;
{
GPUImageBrightnessFilter *filter = [[GPUImageBrightnessFilter alloc] init];
filter.brightness = value;
[filter forceProcessingAtSize:image.size];
GPUImagePicture *pic = [[GPUImagePicture alloc] initWithImage:image];
[pic addTarget:filter];
[pic processImage];
[filter useNextFrameForImageCapture];
return [filter imageFromCurrentFramebuffer];
}
GPUImageContrastFilter *filter = [[GPUImageContrastFilter alloc] ini