<?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: To OLE / From OLE color translator in WPF</title>
	<atom:link href="http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/</link>
	<description>Take care of the sense, and the sounds will take care of themselves.</description>
	<lastBuildDate>Fri, 18 May 2012 08:56:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Ayal Zingher</title>
		<link>http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/comment-page-1/#comment-3942</link>
		<dc:creator>Ayal Zingher</dc:creator>
		<pubDate>Wed, 08 Sep 2010 19:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/#comment-3942</guid>
		<description>Awesome!!  I used this logic to convert colors from WinForms to WPF:
On the Winform , I use Color.ToARGB,

On the WPF I switched the Red and Blue:
        public static Color FromRGB(int RGBColor)
        {
            const int RedShift = 16;
            const int GreenShift = 8;
            const int BlueShift = 0; 
            return Color.FromRgb(
                (byte)((RGBColor &gt;&gt; RedShift) &amp; 0xFF),
                (byte)((RGBColor &gt;&gt; GreenShift) &amp; 0xFF),
                (byte)((RGBColor &gt;&gt; BlueShift) &amp; 0xFF)
                );
        } 

Kudos, man!!</description>
		<content:encoded><![CDATA[<p>Awesome!!  I used this logic to convert colors from WinForms to WPF:<br />
On the Winform , I use Color.ToARGB,</p>
<p>On the WPF I switched the Red and Blue:<br />
        public static Color FromRGB(int RGBColor)<br />
        {<br />
            const int RedShift = 16;<br />
            const int GreenShift = 8;<br />
            const int BlueShift = 0;<br />
            return Color.FromRgb(<br />
                (byte)((RGBColor &gt;&gt; RedShift) &amp; 0xFF),<br />
                (byte)((RGBColor &gt;&gt; GreenShift) &amp; 0xFF),<br />
                (byte)((RGBColor &gt;&gt; BlueShift) &amp; 0xFF)<br />
                );<br />
        } </p>
<p>Kudos, man!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetKicks.com</title>
		<link>http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/comment-page-1/#comment-1305</link>
		<dc:creator>DotNetKicks.com</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/#comment-1305</guid>
		<description>&lt;p&gt;You&#039;ve been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You&#8217;ve been kicked (a good thing) &#8211; Trackback from DotNetKicks.com</p>
]]></content:encoded>
	</item>
</channel>
</rss>

