猎豆优选

ZLImageEditTool.h 889B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ZLImageEditTool.h
  3. // ZLPhotoBrowser
  4. //
  5. // Created by long on 2018/5/5.
  6. // Copyright © 2018年 long. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class ZLPhotoConfiguration;
  10. typedef NS_OPTIONS(NSUInteger, ZLImageEditType) {
  11. ZLImageEditTypeClip = 1 << 1,
  12. ZLImageEditTypeRotate = 1 << 2,
  13. ZLImageEditTypeFilter = 1 << 3,
  14. // 下面这两种暂时无效
  15. ZLImageEditTypeDraw = 1 << 4,
  16. ZLImageEditTypeMosaic = 1 << 5,
  17. };
  18. @interface ZLImageEditTool : UIView
  19. - (instancetype)initWithEditType:(ZLImageEditType)type
  20. image:(UIImage *)image
  21. configuration:(ZLPhotoConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
  22. @property (nonatomic, strong) UIImage *editImage;
  23. @property (nonatomic, copy) void (^cancelEditBlock)(void);
  24. @property (nonatomic, copy) void (^doneEditBlock)(UIImage *);
  25. @end