I have an app that show an image and the user can "cut" some part of the image.
My problem is that I can´t save the part cutted.
References:
How to save the UIImage after multi point cropping the image?
This is the method to crop the image:
- (void) setClippingPath:(UIBezierPath *)clippingPath imagen:(UIImageView *)imagenView;
{
if (![[imagenView layer] mask])
[[imagenView layer] setMask:[CAShapeLayer layer]];
[(CAShapeLayer*) [[imagenView layer] mask] setPath:[clippingPath CGPath]];
}
Can I save the new image?
Thanks