TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Vadym Markov.
UIImageView 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 UIImageView-MARKColorizer.
- (UIImage *)mark_colorizedImageWithColor:(UIColor *)color
blendMode:(CGBlendMode)blendMode;
- (void)mark_colorizeImageWithColor:(UIColor *)color
blendMode:(CGBlendMode)blendMode;
UIImage *image = [UIImage imageNamed:@"image"];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[imageView mark_colorizeImageWithColor:[UIColor greenColor]
blendMode:kCGBlendModeMultiply];
// ...
UIImage *colorizedImage = [imageView mark_colorizedImageWithColor:[UIColor greenColor]
blendMode:kCGBlendModeMultiply];
UIImageView-MARKColorizer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'UIImageView-MARKColorizer'
Vadym Markov, [email protected]
UIImageView-MARKColorizer is available under the MIT license. See the LICENSE file for more info.