//
//  ZLImageEditTool.h
//  ZLPhotoBrowser
//
//  Created by long on 2018/5/5.
//  Copyright © 2018年 long. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZLPhotoConfiguration;

typedef NS_ENUM(NSUInteger, ZLImageEditType) {
    ZLImageEditTypeClip     = 1 << 1,
    ZLImageEditTypeRotate   = 1 << 2,
    ZLImageEditTypeFilter   = 1 << 3,
    ZLImageEditTypeDraw     = 1 << 4,
    ZLImageEditTypeMosaic   = 1 << 5,
};

@interface ZLImageEditTool : UIView

- (instancetype)initWithEditType:(ZLImageEditType)type
                           image:(UIImage *)image
                   configuration:(ZLPhotoConfiguration *)configuration NS_DESIGNATED_INITIALIZER;

@property (nonatomic, strong) UIImage *editImage;

@property (nonatomic, copy) void (^cancelEditBlock)(void);
@property (nonatomic, copy) void (^doneEditBlock)(UIImage *);

@end
