2023-09-16 12:38:42 +04:00

42 lines
1.0 KiB
Objective-C

#import "PGPhotoTool.h"
typedef enum
{
PGCurvesTypeLuminance,
PGCurvesTypeRed,
PGCurvesTypeGreen,
PGCurvesTypeBlue
} PGCurvesType;
@interface PGCurvesValue : NSObject <NSCopying>
@property (nonatomic, assign) CGFloat blacksLevel;
@property (nonatomic, assign) CGFloat shadowsLevel;
@property (nonatomic, assign) CGFloat midtonesLevel;
@property (nonatomic, assign) CGFloat highlightsLevel;
@property (nonatomic, assign) CGFloat whitesLevel;
- (NSArray *)interpolateCurve;
+ (instancetype)defaultValue;
@end
@interface PGCurvesToolValue : NSObject <NSCopying, PGCustomToolValue>
@property (nonatomic, strong) PGCurvesValue *luminanceCurve;
@property (nonatomic, strong) PGCurvesValue *redCurve;
@property (nonatomic, strong) PGCurvesValue *greenCurve;
@property (nonatomic, strong) PGCurvesValue *blueCurve;
@property (nonatomic, assign) PGCurvesType activeType;
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
- (NSDictionary *)dictionary;
@end
@interface PGCurvesTool : PGPhotoTool
@end