UIImage-MARKColorizer 0.1.1

UIImage-MARKColorizer 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Vadym Markov.



UIImage category for image colorizing. Uses CGBlendMode for operations with images. Check Apple documentation for more information: https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGContext/index.html#//apple_ref/c/tdef/CGBlendMode

Please check Demo project for a basic example on how to use UIImage-MARKColorizer.

Available methods

+ (UIImage *)mark_colorizeImage:(UIImage *)image
                      withColor:(UIColor *)color
                      blendMode:(CGBlendMode)blendMode;

- (UIImage *)mark_colorizedCopyWithColor:(UIColor *)color
                               blendMode:(CGBlendMode)blendMode;

Usage

In your code

UIImage *image = [UIImage imageNamed:@"image"];
UIImage *colorizedImage = [image mark_colorizedCopyWithColor:[UIColor greenColor]
                                                   blendMode:kCGBlendModeMultiply];
// ...
UIImage *colorizedImage2 = [UIImage mark_colorizeImage:image
                                             withColor:[UIColor greenColor] blendMode:kCGBlendModeMultiply];

Installation

UIImage-MARKColorizer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'UIImage-MARKColorizer'

Author

Vadym Markov, [email protected]

License

UIImage-MARKColorizer is available under the MIT license. See the LICENSE file for more info.