FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIImage.h
Go to the documentation of this file.
1 //
2 // UIImage.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 10. 5..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
15 #import <UIKit/UIKit.h>
16 
22 
29 - (instancetype)initWithContentsOfURL:(NSURL *)URL;
30 
37 + (instancetype)imageWithContentsOfURL:(NSURL *)URL;
38 
46 - (instancetype)initWithContentsOfURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy;
47 
55 + (instancetype)imageWithContentsOfURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy;
56 
62 - (instancetype)initWithContentsOfURLRequest:(NSURLRequest *)request;
63 
69 + (instancetype)imageWithContentsOfURLRequest:(NSURLRequest *)request;
70 
71 @end
72 
73 
80 
87 - (UIImage *)imageByResizingToSize:(CGSize)size;
88 
95 - (UIImage *)imageByCroppedToRect:(CGRect)rect;
96 
102 - (UIImage *)imageByFilledWithColor:(UIColor *)color;
103 
109 + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
110 
114 + (UIImage *)clearImage;
115 
122 + (UIImage *)imageWithBezierPath:(UIBezierPath *)path color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor;
123 
124 @end
125 
126 
133 
138 - (UIImage *)imageOfSize:(CGSize)size;
139 
143 - (UIImage *)image;
144 
145 @end
146 
147 
154 
160 - (UIImage *)imageWithStrokeColor:(UIColor *)strokeColor fillColor:(UIColor *)fillColor;
161 
166 - (UIImage *)imageWithStrokeColor:(UIColor *)strokeColor;
167 
172 - (UIImage *)imageWithFillColor:(UIColor *)fillColor;
173 
174 @end
UIImage * image()
Colored image sized 1x1.
UIImage convinient creations methods.
Definition: UIImage.h:21
UIImage generator for UIColor.
Definition: UIImage.h:132
UIImage * clearImage()
Clear colored image.
UIBezierPath extension for UIImage creation.
Definition: UIImage.h:153
UIImage graphics extension.
Definition: UIImage.h:79