【发布时间】:2012-12-13 12:15:51
【问题描述】:
我有一个显示图像的应用,用户可以“剪切”图像的某些部分。
我的问题是我无法保存切割的部分。
参考资料:
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]];
}
我可以保存新图像吗?
谢谢
【问题讨论】:
-
从你的图像视图中生成图像怎么样?
-
你能解释一下怎么做吗?请。谢谢。
标签: ios crop uibezierpath clip