<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A2 Apps &#187; Core Graphics</title>
	<atom:link href="http://a2apps.com.au/tag/core-graphics/feed/" rel="self" type="application/rss+xml" />
	<link>http://a2apps.com.au</link>
	<description></description>
	<lastBuildDate>Sun, 10 Mar 2013 08:52:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Creating an empty UIImage of a given size and color programmatically</title>
		<link>http://a2apps.com.au/creating-an-empty-uiimage-of-a-given-size-and-color-programmatically/</link>
		<comments>http://a2apps.com.au/creating-an-empty-uiimage-of-a-given-size-and-color-programmatically/#comments</comments>
		<pubDate>Sat, 09 Feb 2013 05:10:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iOS Snippets]]></category>
		<category><![CDATA[Core Graphics]]></category>
		<category><![CDATA[UIImage]]></category>

		<guid isPermaLink="false">http://a2apps.com.au/?p=27</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: objc; title: ; notranslate">

+ (UIImage *)imageWithColor:(UIColor *)color andSize:(CGSize)size

{

CGRect rect = CGRectMake(0.0f, 0.0f, size.width, size.height);

UIGraphicsBeginImageContext(rect.size);

CGContextRef context = UIGraphicsGetCurrentContext();

CGContextSetFillColorWithColor(context, [color CGColor]);

CGContextFillRect(context, rect);

UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

return image;

}

</pre>
]]></content:encoded>
			<wfw:commentRss>http://a2apps.com.au/creating-an-empty-uiimage-of-a-given-size-and-color-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
