Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

keshiim/ZMJImageEditor

Repository files navigation

CI StatusVersionLicensePlatform

功能介绍

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,支持国际化)

  1. draw功能

draw

  1. text

texttext2

  1. clip,rotation

clip,rotation

  1. 支持贴图(paper) 新增

Usage

调起

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"]]             ];}

Example

To run the example project, clone the repo, and runpod install from the Example directory first.

and this is thedemo project

Requirements

iOS7+

Installation

ZMJImageEditor is available throughCocoaPods. To installit, simply add the following line to your Podfile:

pod"ZMJImageEditor"

Author

keshiim,keshiim@163.com

License

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

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp