-
Notifications
You must be signed in to change notification settings - Fork 1
/
CoreImage+Convenience.h
34 lines (23 loc) · 1.16 KB
/
CoreImage+Convenience.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// CoreImage+Convenience.h
// Poisk
//
// Created by Alexander Ivanov on 13.06.17.
// Copyright © 2017 Pine 9. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface UIImage (CoreImage)
- (NSArray<CIFeature *> *)featuresOfType:(NSString *)type options:(NSDictionary<NSString *, id> *)options;
- (CGRect)boundsForFeature:(CIFeature *)feature;
- (UIImage *)imageWithFeature:(CIFeature *)feature;
+ (UIImage *)imageWithFilter:(NSString *)name parameters:(NSDictionary<NSString *, id> *)params scale:(CGFloat)scale orientation:(UIImageOrientation)orientation;
+ (UIImage *)imageWithFilter:(NSString *)name parameters:(NSDictionary<NSString *, id> *)params scale:(CGFloat)scale;
+ (UIImage *)imageWithFilter:(NSString *)name parameters:(NSDictionary<NSString *, id> *)params;
- (UIImage *)filterWithName:(NSString *)name parameters:(NSDictionary<NSString *, id> *)params createCGImage:(BOOL)flag;
- (UIImage *)filterWithName:(NSString *)name parameters:(NSDictionary<NSString *, id> *)params;
- (UIImage *)filterWithName:(NSString *)name;
@end
@interface NSData (CoreImage)
- (UIImage *)qrCode:(NSString *)inputCorrectionLevel;
@end