mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
42 lines
1.0 KiB
Objective-C
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
|