ZMJImageEditor 是一个和微信一样图片编辑的组件,功能强大,极易集成,支持绘制、文字、旋转、剪裁、马赛克、擦除重绘等功能。
- keshiim ZMJImageEditor(https://github.com/keshiim/ZMJImageEditor)
- 1、Draw
- 2、Text
- 3、Mosica
- 4、Crop/Rotate
- 5、Erase/redraw
调起
WBGImageEditor *editor = [[WBGImageEditor alloc] initWithImage:_imageView.image delegate:self];
[self presentViewController:editor animated:YES completion:nil];
回调
#pragma mark - WBGImageEditorDelegate
- (void)imageEditor:(WBGImageEditor *)editor didFinishEdittingWithImage:(UIImage *)image
{
self.imageView.image = image;
[editor.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}
- (void)imageEditorDidCancel:(WBGImageEditor *)editor
{
}
- iOS7+
-
keshiim
-
Qinmin
- Email: 11gmqin@gmail.com
- 贝塞尔曲线提高圆滑度
- 分组渲染降低每次渲染顶点数
- WBGImageEditor is available under the MIT license. See the LICENSE file for more info.