keshiim/ZMJImageEditor
소개
ZMJImageEditor는 WeChat과 같은 이미지 편집 컴포넌트입니다. 기능이 강력하고 쉽게 통합할 수 있으며, 그리기, 텍스트 추가, 회전, 자르기, 스티커 붙이기 등을 지원합니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalZMJImageEditor
功能介绍
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) 新增
Usage
调起
WBGImageEditor *editor = [[WBGImageEditor alloc] initWithImage:_imageView.image delegate:self];
[self presentViewController:editor animated:YES completion:nil];
回调delegate
#pragma mark - WBGImageEditorDelegate
- (void)imageEditor:(WBGImageEditor *)editor didFinishEdittingWithImage:(UIImage *)image {
self.imageView.image = image;
[editor.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}
- (void)imageEditorDidCancel:(WBGImageEditor *)editor {
}
增加了图片资源回调
#pragma mark - WBGImageEditorDataSource
- (NSArray<WBGMoreKeyboardItem *> *)imageItemsEditor:(WBGImageEditor *)editor {
return @[
[WBGMoreKeyboardItem createByTitle:@"p1" imagePath:@"p1" image:[UIImage imageNamed:@"p1"]],
[WBGMoreKeyboardItem createByTitle:@"p2" imagePath:@"p2" image:[UIImage imageNamed:@"p2"]]
];
}
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
and this is the demo project
Requirements
iOS7+
Installation
ZMJImageEditor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ZMJImageEditor"
Author
keshiim, [email protected]
License
ZMJImageEditor is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…