<?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: Lighten and Darken Colors in .NET</title>
	<atom:link href="http://www.csharp411.com/lighten-and-darken-colors-in-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/lighten-and-darken-colors-in-net/</link>
	<description>C# Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:14:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Daniel</title>
		<link>http://www.csharp411.com/lighten-and-darken-colors-in-net/#comment-182</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 26 Sep 2010 19:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/lighten-and-darken-colors-in-net/#comment-182</guid>
		<description>Thanks for sharing!
I was a long time looking for a possibility to in- or decrease a calor value.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing!<br />
I was a long time looking for a possibility to in- or decrease a calor value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://www.csharp411.com/lighten-and-darken-colors-in-net/#comment-181</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Mon, 20 Sep 2010 10:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/lighten-and-darken-colors-in-net/#comment-181</guid>
		<description>what about an dark color method?
I am trying this one: but it gives me an exception when of course it tries to make 10 - 80 (for example) it gives negative value so it is not ok: 
 public Color GetDarkerColor(Color color)
    {
        const int max = 255;
        int increase = 80;

        int r = Math.Min(color.R - increase, max);
        int g = Math.Min(color.G - increase, max);
        int b = Math.Min(color.B - increase, max);

        return Color.FromArgb(r, g, b);
    }</description>
		<content:encoded><![CDATA[<p>what about an dark color method?<br />
I am trying this one: but it gives me an exception when of course it tries to make 10 &#8211; 80 (for example) it gives negative value so it is not ok:<br />
 public Color GetDarkerColor(Color color)<br />
    {<br />
        const int max = 255;<br />
        int increase = 80;</p>
<p>        int r = Math.Min(color.R &#8211; increase, max);<br />
        int g = Math.Min(color.G &#8211; increase, max);<br />
        int b = Math.Min(color.B &#8211; increase, max);</p>
<p>        return Color.FromArgb(r, g, b);<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/lighten-and-darken-colors-in-net/#comment-180</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Tue, 05 May 2009 15:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/lighten-and-darken-colors-in-net/#comment-180</guid>
		<description>Re: DarkDark() always returns black?

Yes, it appears so, but I do not have conclusive proof.</description>
		<content:encoded><![CDATA[<p>Re: DarkDark() always returns black?</p>
<p>Yes, it appears so, but I do not have conclusive proof.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ad</title>
		<link>http://www.csharp411.com/lighten-and-darken-colors-in-net/#comment-179</link>
		<dc:creator>ad</dc:creator>
		<pubDate>Tue, 05 May 2009 14:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/lighten-and-darken-colors-in-net/#comment-179</guid>
		<description>Then:

Dark( color, 1.0F ) == DarkDark( color )
Dark( color, 1.0F ) == Color.Black

So:

DarkDark( color ) == Color.Black

DarkDark() always returns black?</description>
		<content:encoded><![CDATA[<p>Then:</p>
<p>Dark( color, 1.0F ) == DarkDark( color )<br />
Dark( color, 1.0F ) == Color.Black</p>
<p>So:</p>
<p>DarkDark( color ) == Color.Black</p>
<p>DarkDark() always returns black?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laythe</title>
		<link>http://www.csharp411.com/lighten-and-darken-colors-in-net/#comment-178</link>
		<dc:creator>laythe</dc:creator>
		<pubDate>Wed, 08 Apr 2009 11:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/lighten-and-darken-colors-in-net/#comment-178</guid>
		<description>Thanks, was just what i was looking for!</description>
		<content:encoded><![CDATA[<p>Thanks, was just what i was looking for!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

