Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.15 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.15 KB

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.