forked from mergesort/UIImage-Transforms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIImage+Transforms.h
More file actions
executable file
·44 lines (33 loc) · 1.47 KB
/
UIImage+Transforms.h
File metadata and controls
executable file
·44 lines (33 loc) · 1.47 KB
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
//
// UIImage+Transforms.h
// mergesort
//
// Created by Joe on 11/7/13.
// Copyright (c) 2013 Picks. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (Transforms)
+ (UIImage *)blankImage;
+ (UIImage *)imageOfColor:(UIColor *)color;
+ (UIImage*) grayishImage: (UIImage*) inputImage;
- (UIImage *)tintedGradientImageWithColor:(UIColor *)tintColor;
- (UIImage *)tintedImageWithColor:(UIColor *)tintColor;
- (UIImage *)imageScaledToSize:(CGSize)size;
- (UIImage *)imageSmoothlyScaledToSize:(CGSize)size;
+ (UIImage *)imageFromLayer:(CALayer *)layer;
+ (UIImage *)stitchImages:(NSArray *)images vertically:(BOOL)vertically;
- (UIImage *)colorizeImageWithColor:(UIColor *)color;
- (UIImage *)colorizeImageWithColor:(UIColor *)color withBlendMode:(CGBlendMode)blendMode;
+ (UIImage*) maskImage:(UIImage *)image withMask:(UIImage *)maskImage ;
- (UIImage *)croppedImage:(CGRect)bounds;
- (UIImage *)thumbnailImage:(NSInteger)thumbnailSize
transparentBorder:(NSUInteger)borderSize
cornerRadius:(NSUInteger)cornerRadius
interpolationQuality:(CGInterpolationQuality)quality;
- (UIImage *)resizedImage:(CGSize)newSize
interpolationQuality:(CGInterpolationQuality)quality;
- (UIImage *)resizedImageWithContentMode:(UIViewContentMode)contentMode
bounds:(CGSize)bounds
interpolationQuality:(CGInterpolationQuality)quality;
- (UIImage*)imageByScalingAndCroppingForSize:(CGSize)targetSize;
@end