/ZMJImageEditor

ZMJImageEditor 是一个和微信一样图片编辑的组件,功能强大,极易集成,支持绘制、文字、旋转、剪裁、马赛克等功能。

Primary LanguageObjective-CMIT LicenseMIT

ZMJImageEditor 是一个和微信一样图片编辑的组件,功能强大,极易集成,支持绘制、文字、旋转、剪裁、马赛克、擦除重绘等功能。

Base On

Feature

  • 1、Draw
  • 2、Text
  • 3、Mosica
  • 4、Crop/Rotate
  • 5、Erase/redraw

GIF

ScreenShot

Usage

调起

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 
{

}

Requirements

  • iOS7+

Author

  • keshiim

  • Qinmin

Blog

Contact Me

To do

  • 贝塞尔曲线提高圆滑度
  • 分组渲染降低每次渲染顶点数

License

  • WBGImageEditor is available under the MIT license. See the LICENSE file for more info.