Latest 0.1.1
Homepage https://github.com/markvaldy/UIImageView-MARKColorizer
License MIT
Platforms ios 7.0, requires ARC
Dependencies UIImage-MARKColorizer
Frameworks UIKit
Authors

Version
License
Platform

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.

Demo

Alt text

Available methods

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

- (void)mark_colorizeImageWithColor:(UIColor *)color
                          blendMode:(CGBlendMode)blendMode;

Usage

In your code

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];

Installation

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

pod 'UIImageView-MARKColorizer'

Author

Vadym Markov, [email protected]

License

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

Latest podspec

{
    "name": "UIImageView-MARKColorizer",
    "version": "0.1.1",
    "summary": "UIImageView category for image colorizing",
    "homepage": "https://github.com/markvaldy/UIImageView-MARKColorizer",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Vadym Markov": "[email protected]"
    },
    "social_media_url": "https://twitter.com/markvaldy",
    "source": {
        "git": "https://github.com/markvaldy/UIImageView-MARKColorizer.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "frameworks": "UIKit",
    "source_files": "Source/**/*.{h,m}",
    "dependencies": {
        "UIImage-MARKColorizer": [
            "~> 0.1.1"
        ]
    }
}

Pin It on Pinterest

Share This