mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-29 14:36:31 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
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
|