- Notifications
You must be signed in to change notification settings - Fork103
ZMJImageEditor is a picture editing component like WeChat. It is powerful and easy to integrate, supporting rendering, text, rotation, tailoring, mapping and other functions. (ZMJImageEditor 是一个和微信一样图片编辑的组件,功能强大,极易集成,支持绘制、文字、旋转、剪裁、贴图等功能)
License
keshiim/ZMJImageEditor
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Tailoring, graffiti, and writing. All kinds of rotations are done well, if you have bug, welcome issue, and the following are several GIF, support Internationale-localizable (剪裁、涂鸦、文字。各种旋转各种好完,如果有bug,欢迎issue,下面是几个介绍功能的GIF,支持国际化)
- draw功能
- text
- clip,rotation
- 支持贴图(paper) 新增
调起
WBGImageEditor *editor = [[WBGImageEditoralloc]initWithImage:_imageView.imagedelegate:self];[selfpresentViewController:editoranimated:YEScompletion:nil];
回调delegate
#pragma mark - WBGImageEditorDelegate- (void)imageEditor:(WBGImageEditor *)editor didFinishEdittingWithImage:(UIImage *)image {self.imageView.image = image;[editor.presentingViewControllerdismissViewControllerAnimated:YEScompletion:nil];}- (void)imageEditorDidCancel:(WBGImageEditor *)editor {}
增加了图片资源回调
#pragma mark - WBGImageEditorDataSource- (NSArray<WBGMoreKeyboardItem *> *)imageItemsEditor:(WBGImageEditor *)editor {return @[ [WBGMoreKeyboardItemcreateByTitle:@"p1"imagePath:@"p1"image:[UIImageimageNamed:@"p1"]], [WBGMoreKeyboardItemcreateByTitle:@"p2"imagePath:@"p2"image:[UIImageimageNamed:@"p2"]] ];}
To run the example project, clone the repo, and runpod install from the Example directory first.
and this is thedemo project
iOS7+
ZMJImageEditor is available throughCocoaPods. To installit, simply add the following line to your Podfile:
pod"ZMJImageEditor"
keshiim,keshiim@163.com
ZMJImageEditor is available under the MIT license. See the LICENSE file for more info.
About
ZMJImageEditor is a picture editing component like WeChat. It is powerful and easy to integrate, supporting rendering, text, rotation, tailoring, mapping and other functions. (ZMJImageEditor 是一个和微信一样图片编辑的组件,功能强大,极易集成,支持绘制、文字、旋转、剪裁、贴图等功能)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.



