0
我有一个应用程序显示图像,用户可以“剪切”图像的某些部分。如何使用UIBezierPath保存裁剪后的图像
我的问题是我不能保存切割的零件。
参考文献:
How to save the UIImage after multi point cropping 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]];
}
我可以保存新的图像?
感谢
如何从你的图像视图只是生成图像? –
你能解释一下怎么做吗?请。谢谢。 – Kaisser