-
Notifications
You must be signed in to change notification settings - Fork 9
/
SYCompositor.h
51 lines (38 loc) · 1.36 KB
/
SYCompositor.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// SYCompositor.h
// SYCompositor
//
// Created by Sam Soffes on 9/15/11.
// Copyright (c) 2011-2012 Synthetic. All rights reserved.
//
#import <Foundation/Foundation.h>
// Blending mode
extern NSString *const kSYCompositorModeKey;
// Rect - only draw in part of the frame
extern NSString *const kSYCompositorRectKey;
// Draw an image
extern NSString *const kSYCompositorImageKey;
extern NSString *const kSYCompositorImageNameKey;
extern NSString *const kSYCompositorImagePathKey;
// Draw a color
extern NSString *const kSYCompositorColorKey;
extern NSString *const kSYCompositorColorHexKey;
// Set the alpha of what is drawn
extern NSString *const kSYCompositorAlphaKey;
// Masking
extern NSString *const kSYCompositorMaskImageKey;
extern NSString *const kSYCompositorMaskImageNameKey;
extern NSString *const kSYCompositorMaskImagePathKey;
extern NSString *const kSYCompositorPersistentMaskKey;
// Draw a gradient
extern NSString *const kSYCompositorGradientKey; // `radial` or `linear`
extern NSString *const kSYCompositorGradientColorsKey;
extern NSString *const kSYCompositorGradientColorsHexesKey;
@class SYCache;
@class UIImage;
@interface SYCompositor : NSObject
+ (UIImage *)imageWithKey:(NSString *)key;
+ (UIImage *)imageWithLayers:(NSArray *)layers size:(CGSize)size key:(NSString *)key;
+ (NSString *)pathForImageWithKey:(NSString *)key;
+ (SYCache *)cache;
@end