Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.36 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.36 KB

No Maintenance Intended Twitter

AGSimpleImageEditorView

AGSimpleImageEditorView is just another image editor for iOS. The only features that this editor has are image cropping and rotation.

Screenshot

Installation

Copy over the files from the AGSimpleImageEditorView folder to your project folder.

Usage

Wherever you want to use AGSimpleImageEditorView, import the appropriate header file and initialize as follows:

#import "AGSimpleImageEditorView"

Basic

simpleImageEditorView = [[AGSimpleImageEditorView alloc] initWithImage:[UIImage imageNamed:@"sample"]];
[self.view addSubview:simpleImageEditorView];

Rotation

Left
[simpleImageEditorView rotateLeft];
Right
[simpleImageEditorView rotateRight];

Cropping

simpleImageEditorView.ratio = 4./3.;

Resulting image

UIImage *result = simpleImageEditorView.output;

Contact

Let me know if you're using or enjoying this product.