forked from mrnuku/util
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUIImage+RenderStuff.h
More file actions
40 lines (26 loc) · 996 Bytes
/
UIImage+RenderStuff.h
File metadata and controls
40 lines (26 loc) · 996 Bytes
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
//
// UIImage+RenderStuff.h
// McK.HERO.Demo
//
// Created by Bálint Róbert on 28/05/15.
// Copyright (c) 2015 Incepteam. All rights reserved.
//
#import <UIKit/UIKit.h>
extern NSString* kRenderStuffBackground;
extern NSString* kRenderStuffSize;
extern NSString* kRenderStuffColor;
extern NSString* kRenderStuffObject;
extern NSString* kRenderStuffPosition;
@interface RenderStuffCustomShape : NSObject
@property (nonatomic, strong) UIColor *fillColor;
@end
@interface RenderStuffCircle : RenderStuffCustomShape
@property (nonatomic, assign) CGFloat radius;
+ (RenderStuffCircle *)makeCircleWithColor:(UIColor *)color andRadius:(CGFloat)radius;
@end
@interface UIImage (RenderStuff)
+ (UIImage *)renderImageUsingDictionary:(NSDictionary *)dict;
+ (NSDictionary *)makeRenderBackgroundWithColor:(UIColor *)color andSize:(CGSize)size;
+ (NSDictionary *)makeRenderObject:(id)object withCenterPosition:(CGPoint)position;
- (UIImage *)tintedCopyWithTintColor:(UIColor *)color;
@end