<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Creating gradient background with transparent labels in .NET Compact Framework</title>
	<atom:link href="http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/</link>
	<description>Technology, mobility and software development</description>
	<lastBuildDate>Tue, 20 Jul 2010 21:02:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Per Ola Sæther</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-4410</link>
		<dc:creator>Per Ola Sæther</dc:creator>
		<pubDate>Tue, 16 Mar 2010 18:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-4410</guid>
		<description>Hi Mark.
I understand your problem since this code example is more to be consider a conceptual example on how this can be achieved. The TransparentLabel.cs is invoking the OnPaintBackground in GradientTransparentTest.cs
As you can see the OnPaintBackground is hardcoded with the gradient start color (silver) and the gradient end color (blue) and this causes your label to be filled with a gradient color not consistent to the gradient background. One way to solve this would be to calculate the exact color your background has at the start Y-position for the label.

I might write a more sophisticated example covering this issue in the near future.</description>
		<content:encoded><![CDATA[<p>Hi Mark.<br />
I understand your problem since this code example is more to be consider a conceptual example on how this can be achieved. The TransparentLabel.cs is invoking the OnPaintBackground in GradientTransparentTest.cs<br />
As you can see the OnPaintBackground is hardcoded with the gradient start color (silver) and the gradient end color (blue) and this causes your label to be filled with a gradient color not consistent to the gradient background. One way to solve this would be to calculate the exact color your background has at the start Y-position for the label.</p>
<p>I might write a more sophisticated example covering this issue in the near future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Read</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-4409</link>
		<dc:creator>Mark Read</dc:creator>
		<pubDate>Tue, 16 Mar 2010 16:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-4409</guid>
		<description>Nice bit of code.  However it doesnt work if you have your gradient fill TopToBottom (as opposed to LeftToRight,  this is because it will fill the label based on the colors at the top of the screen,  hence if the lable is lower down the screen the background doesnt look transparent.   Any ideas how to solve this ?</description>
		<content:encoded><![CDATA[<p>Nice bit of code.  However it doesnt work if you have your gradient fill TopToBottom (as opposed to LeftToRight,  this is because it will fill the label based on the colors at the top of the screen,  hence if the lable is lower down the screen the background doesnt look transparent.   Any ideas how to solve this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VJ</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-2920</link>
		<dc:creator>VJ</dc:creator>
		<pubDate>Fri, 08 Jan 2010 01:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-2920</guid>
		<description>Very good, was searching for this stuff since last two weeks. Thanks for sharing the article as well as code.</description>
		<content:encoded><![CDATA[<p>Very good, was searching for this stuff since last two weeks. Thanks for sharing the article as well as code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per Ola Sæther</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-2680</link>
		<dc:creator>Per Ola Sæther</dc:creator>
		<pubDate>Sun, 27 Dec 2009 15:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-2680</guid>
		<description>Bjorn: Feel free to use any code lines you find on this blog as if they were your own. Good luck on your WM app :)</description>
		<content:encoded><![CDATA[<p>Bjorn: Feel free to use any code lines you find on this blog as if they were your own. Good luck on your WM app <img src='http://breathingtech.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-2660</link>
		<dc:creator>Bjorn</dc:creator>
		<pubDate>Sat, 26 Dec 2009 13:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-2660</guid>
		<description>Thanks for sharing your code. I&#039;m currently working on a application for WM, and I will use your lines when creating my gradients. I hope this isn&#039;t any problem. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your code. I&#8217;m currently working on a application for WM, and I will use your lines when creating my gradients. I hope this isn&#8217;t any problem. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per Ola Sæther</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-2036</link>
		<dc:creator>Per Ola Sæther</dc:creator>
		<pubDate>Wed, 25 Nov 2009 15:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-2036</guid>
		<description>Hiren,
I&#039;m glad you found this useful.</description>
		<content:encoded><![CDATA[<p>Hiren,<br />
I&#8217;m glad you found this useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hiren</title>
		<link>http://breathingtech.com/2009/creating-gradient-background-with-transparent-labels-in-net-compact-framework/comment-page-1/#comment-2033</link>
		<dc:creator>Hiren</dc:creator>
		<pubDate>Wed, 25 Nov 2009 14:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://breathingtech.com/?p=601#comment-2033</guid>
		<description>Thanks. It helps me lot.</description>
		<content:encoded><![CDATA[<p>Thanks. It helps me lot.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
