| { |
| "name": "UIImage-ASWhiteColorToAlpha", |
| "version": "1.1.0", |
| "summary": "An easy image overlay creator that converts the white color to alpha.", |
| "description": "# UIImage-ASWhiteColorToAlpha\n\n##When do I need it?\n\nThis is our original image:\n\n![original](https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/original.png)\n\nThis is our background:\n\n![chessboard](https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/chessboard_bg.png)\n\nWe want this result:\n\n![white_color_to_alpha_on_chessboard](https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/white_color_to_alpha_on_chessboard.png)\n\n... which looks like this on white backgroud:\n\n![white_color_to_alpha_on_white](https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/white_color_to_alpha_on_white.png)\n\n##How it works?\n\n1. Copy the `/UIImage_ASWhiteColorToAlpha` directory into your project.\n\n2. Import UIImage+ASWhiteColorToAlpha.h `#import UIImage+ASWhiteColorToAlpha.h`\n\n3. Use -[UIImage imageWithWhiteColorToAlpha] method call to get your translucent image `UIImage *myTranslucentImage = [myOriginalImage imageWithWhiteColorToAlpha];` or -[UIImage renderImageWithWhiteColorToAlpha:] which gives back the asynchronously rendered image in a completion block.\n```__block UIImage *myTranslicentImage = nil;\n[myOriginalImage renderImageWithWhiteColorToAlpha:^(UIImage *translucentImage){\nmyTranslucentImage = translucentImage;\n// Update UI\n}];```\n\n##Known issues\n\n* Should be cached for reuse", |
| "homepage": "https://github.com/AdamStreet/UIImage-ASWhiteColorToAlpha", |
| "screenshots": [ |
| "https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/original.png", |
| "https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/chessboard_bg.png", |
| "https://raw.githubusercontent.com/AdamStreet/UIImage-ASWhiteColorToAlpha/master/Resources/white_color_to_alpha_on_chessboard.png" |
| ], |
| "license": { |
| "type": "MIT", |
| "file": "LICENSE" |
| }, |
| "authors": { |
| "Adam Szabo": "adam.street.fire@gmail.com" |
| }, |
| "platforms": { |
| "ios": null |
| }, |
| "source": { |
| "git": "https://github.com/AdamStreet/UIImage-ASWhiteColorToAlpha.git", |
| "tag": "1.1.0" |
| }, |
| "source_files": [ |
| "UIImage_ASWhiteColorToAlpha", |
| "UIImage_ASWhiteColorToAlpha/**/*.{h,m}" |
| ], |
| "exclude_files": "UIImage_ASWhiteColorToAlpha/Exclude", |
| "requires_arc": true |
| } |