<?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: WriteableBitmap pixel format in Silverlight 3</title>
	<atom:link href="http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/</link>
	<description>Learn to write games in Silverlight using C#</description>
	<lastBuildDate>Tue, 09 Mar 2010 02:15:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: agaace</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-578</link>
		<dc:creator>agaace</dc:creator>
		<pubDate>Sat, 19 Sep 2009 20:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-578</guid>
		<description>Thank you so so much for saving my life! I spent last 2 hours wondering what I was doing wrong, because I was SURE it was using ARGB (otherwise it would be explained in samples or in the doc, right?). </description>
		<content:encoded><![CDATA[<p>Thank you so so much for saving my life! I spent last 2 hours wondering what I was doing wrong, because I was SURE it was using ARGB (otherwise it would be explained in samples or in the doc, right?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Bartmann</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-520</link>
		<dc:creator>Bill Bartmann</dc:creator>
		<pubDate>Thu, 03 Sep 2009 17:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-520</guid>
		<description>Excellent site, keep up the good work</description>
		<content:encoded><![CDATA[<p>Excellent site, keep up the good work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conker</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-415</link>
		<dc:creator>Conker</dc:creator>
		<pubDate>Tue, 21 Jul 2009 17:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-415</guid>
		<description>Found it on other forum, when researching bad performance :

do not use WriteableBitmap.PixelWidth/PixelHeight property in pixel rendering cycle, it cost too much time.

        // set _pwidth=bitmap.PixelWidth in constructor
        public void SetPixel(int x, int y, int color)
        {
            var index = (_pwidth * (y - 1)) + x;
            frontBuffer[index] = color;
        }

Mog Liang
Microsoft Online Community Support</description>
		<content:encoded><![CDATA[<p>Found it on other forum, when researching bad performance :</p>
<p>do not use WriteableBitmap.PixelWidth/PixelHeight property in pixel rendering cycle, it cost too much time.</p>
<p>        // set _pwidth=bitmap.PixelWidth in constructor<br />
        public void SetPixel(int x, int y, int color)<br />
        {<br />
            var index = (_pwidth * (y &#8211; 1)) + x;<br />
            frontBuffer[index] = color;<br />
        }</p>
<p>Mog Liang<br />
Microsoft Online Community Support</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-412</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Fri, 17 Jul 2009 08:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-412</guid>
		<description>I used Bill&#039;s methods, optimized them a bit and packed them into a static class as extension methods, which is downloadable here http://kodierer.blogspot.com/2009/07/writeablebitmap-extension-methods.html
You can also find a code snippet on how to use it there.</description>
		<content:encoded><![CDATA[<p>I used Bill&#8217;s methods, optimized them a bit and packed them into a static class as extension methods, which is downloadable here <a href="http://kodierer.blogspot.com/2009/07/writeablebitmap-extension-methods.html" rel="nofollow">http://kodierer.blogspot.com/2009/07/writeablebitmap-extension-methods.html</a><br />
You can also find a code snippet on how to use it there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-411</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 17 Jul 2009 05:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-411</guid>
		<description>Neat article! Just one thing: maybe I&#039;m too old school, those divisions look scary to me. Perhaps we can have one &quot;alpha / 255d&quot; instead of three (though I&#039;m not too sure if that is going to make any difference in 2009)... :)

Regards,
Ben.</description>
		<content:encoded><![CDATA[<p>Neat article! Just one thing: maybe I&#8217;m too old school, those divisions look scary to me. Perhaps we can have one &#8220;alpha / 255d&#8221; instead of three (though I&#8217;m not too sure if that is going to make any difference in 2009)&#8230; <img src='http://blogs.silverarcade.com/silverlight-games-101/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards,<br />
Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Reiss</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-410</link>
		<dc:creator>Bill Reiss</dc:creator>
		<pubDate>Thu, 16 Jul 2009 20:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-410</guid>
		<description>Fallon,

Thanks yeah I guess I should have tested the code, I usually do but didn&#039;t this time. The samples have been updated based on your suggestion.

Bill</description>
		<content:encoded><![CDATA[<p>Fallon,</p>
<p>Thanks yeah I guess I should have tested the code, I usually do but didn&#8217;t this time. The samples have been updated based on your suggestion.</p>
<p>Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fallon Massey</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-409</link>
		<dc:creator>Fallon Massey</dc:creator>
		<pubDate>Thu, 16 Jul 2009 18:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-409</guid>
		<description>You probably should change:

void SetPixel(WriteableBitmap b, int row, int col, byte alpha,   
    byte r, byte g, byte b)

to:

void SetPixel(WriteableBitmap bm, int row, int col, byte alpha,   
    byte r, byte g, byte b)

Otherwise, THANKS!!!</description>
		<content:encoded><![CDATA[<p>You probably should change:</p>
<p>void SetPixel(WriteableBitmap b, int row, int col, byte alpha,<br />
    byte r, byte g, byte b)</p>
<p>to:</p>
<p>void SetPixel(WriteableBitmap bm, int row, int col, byte alpha,<br />
    byte r, byte g, byte b)</p>
<p>Otherwise, THANKS!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-408</link>
		<dc:creator>DotNetShoutout</dc:creator>
		<pubDate>Thu, 16 Jul 2009 07:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-408</guid>
		<description>&lt;strong&gt;WriteableBitmap pixel format in Silverlight 3 &#124; Silverlight Games 101...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from DotNetShoutout...</description>
		<content:encoded><![CDATA[<p><strong>WriteableBitmap pixel format in Silverlight 3 | Silverlight Games 101&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-407</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Thu, 16 Jul 2009 06:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-407</guid>
		<description>Thanks for sharing this great info.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this great info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Vogt</title>
		<link>http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/comment-page-1/#comment-406</link>
		<dc:creator>Daniel Vogt</dc:creator>
		<pubDate>Thu, 16 Jul 2009 05:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.silverarcade.com/silverlight-games-101/15/silverlight-writeablebitmap-pixel-format-in-silverlight-3/#comment-406</guid>
		<description>Thanks for sharing this finding. I think I can use it for making the background black-and-white while showing a child window.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this finding. I think I can use it for making the background black-and-white while showing a child window.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
