-
Notifications
You must be signed in to change notification settings - Fork 3
/
PECropView.h
36 lines (27 loc) · 1.04 KB
/
PECropView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// PECropView.h
// PhotoCropEditor
//
// Created by kishikawa katsumi on 2013/05/19.
// Copyright (c) 2013 kishikawa katsumi. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import <AVFoundation/AVFoundation.h>
@interface PECropView : UIView
@property (nonatomic) UIImage *image;
@property (nonatomic, readonly) UIImage *croppedImage;
@property (nonatomic, readonly) CGRect zoomedCropRect;
@property (nonatomic, readonly) CGAffineTransform rotation;
@property (nonatomic, readonly) BOOL userHasModifiedCropArea;
@property (nonatomic) BOOL showsGridMajor;
@property (nonatomic) BOOL keepingCropAspectRatio;
@property (nonatomic) CGFloat cropAspectRatio;
@property (nonatomic) CGRect cropRect;
@property (nonatomic) CGRect imageCropRect;
@property (nonatomic) CGFloat rotationAngle;
@property (nonatomic, weak, readonly) UIRotationGestureRecognizer *rotationGestureRecognizer;
- (void)resetCropRect;
- (void)resetCropRectAnimated:(BOOL)animated;
- (void)setRotationAngle:(CGFloat)rotationAngle snap:(BOOL)snap;
@end