blob: 868d22c61d28de2de8b47b0ae72a621429b046e6 [file] [log] [blame]
"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](\n\nThis is our background:\n\n![chessboard](\n\nWe want this result:\n\n![white_color_to_alpha_on_chessboard](\n\n... which looks like this on white backgroud:\n\n![white_color_to_alpha_on_white](\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": "",
"screenshots": [
"license": {
"type": "MIT",
"file": "LICENSE"
"authors": {
"Adam Szabo": ""
"platforms": {
"ios": null
"source": {
"git": "",
"tag": "1.1.0"
"source_files": [
"exclude_files": "UIImage_ASWhiteColorToAlpha/Exclude",
"requires_arc": true