https://github.com/vadymmarkov/uiimageview-markcolorizer
UIImageView category for image colorizing
https://github.com/vadymmarkov/uiimageview-markcolorizer
Last synced: 7 months ago
JSON representation
UIImageView category for image colorizing
- Host: GitHub
- URL: https://github.com/vadymmarkov/uiimageview-markcolorizer
- Owner: vadymmarkov
- License: other
- Created: 2015-03-15T22:52:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T12:45:27.000Z (over 10 years ago)
- Last Synced: 2025-03-01T15:47:21.300Z (7 months ago)
- Language: Objective-C
- Size: 137 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# UIImageView-MARKColorizer
[](http://cocoadocs.org/docsets/UIImageView-MARKColorizer)
[](http://cocoadocs.org/docsets/UIImageView-MARKColorizer)
[](http://cocoadocs.org/docsets/UIImageView-MARKColorizer)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/CGBlendModePlease check Demo project for a basic example on how to use UIImageView-MARKColorizer.
### Demo
### Available methods
```objc
- (UIImage *)mark_colorizedImageWithColor:(UIColor *)color
blendMode:(CGBlendMode)blendMode;- (void)mark_colorizeImageWithColor:(UIColor *)color
blendMode:(CGBlendMode)blendMode;
```## Usage
#### In your code
```objc
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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:`pod 'UIImageView-MARKColorizer'`
## Author
Vadym Markov, impressionwave@gmail.com
## License
**UIImageView-MARKColorizer** is available under the MIT license. See the LICENSE file for more info.