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