<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WriteableBitmap Sample</title><link>http://blogs.msdn.com/jstegman/archive/2009/03/22/writeablebitmap-sample.aspx</link><description>Here's the source to the WriteableBitmap sample I showed at Mix. The sample uses WriteableBitmap to take a "snapshot" of the running video to make a thumbnail. Click on the image below to run the sample. When running the sample, click on the running video</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>infoblog &amp;raquo; WriteableBitmap Sample</title><link>http://blogs.msdn.com/jstegman/archive/2009/03/22/writeablebitmap-sample.aspx#9500470</link><pubDate>Mon, 23 Mar 2009 06:55:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9500470</guid><dc:creator>infoblog &amp;raquo; WriteableBitmap Sample</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.a-foton.ru/index.php/2009/03/23/writeablebitmap-sample/"&gt;http://blog.a-foton.ru/index.php/2009/03/23/writeablebitmap-sample/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: WriteableBitmap Sample</title><link>http://blogs.msdn.com/jstegman/archive/2009/03/22/writeablebitmap-sample.aspx#9500826</link><pubDate>Mon, 23 Mar 2009 12:34:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9500826</guid><dc:creator>KooKiz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is a strange behaviour with the writeablebitmap. If I assign the writeablebitmap directly to the source of an image, it works (well, depending on the render tree, but that's another problem) :&lt;/p&gt;
&lt;p&gt;WriteableBitmap wb = new WriteableBitmap(30, 40, PixelFormats.Bgr32);&lt;/p&gt;
&lt;p&gt;wb.Render(this.sourceImage, new MatrixTransform());&lt;/p&gt;
&lt;p&gt;image1.Source = wb;&lt;/p&gt;
&lt;p&gt;But if I try to read directly the value of the WriteableBitmap pixels, it throws an exception :&lt;/p&gt;
&lt;p&gt;WriteableBitmap wb = new WriteableBitmap(30, 40, PixelFormats.Bgr32);&lt;/p&gt;
&lt;p&gt;wb.Render(this.sourceImage, new MatrixTransform());&lt;/p&gt;
&lt;p&gt;int color = wb[0];&lt;/p&gt;
&lt;p&gt;Is it a normal behaviour or is it because the writeablebitmap isn't yet fully implemented ?&lt;/p&gt;
</description></item><item><title>re: WriteableBitmap Sample</title><link>http://blogs.msdn.com/jstegman/archive/2009/03/22/writeablebitmap-sample.aspx#9536280</link><pubDate>Tue, 07 Apr 2009 19:59:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9536280</guid><dc:creator>WzBn</dc:creator><description>&lt;p&gt;Hi, I'd like to save the image, in this case image1 to the isolatedstorage of the user. Any ideas how to do taht? Thanks&lt;/p&gt;
</description></item></channel></rss>