<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Loading, iterating, and saving photos with WP7</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/blog/Loading-iterating-and-saving-photos-with-WP7/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Loading, iterating, and saving photos with WP7</title>
		<link></link>
	</image>
	<description>

 Friend of Coding4Fun, Ren&#233; Schulte, has an 
full write-up on how to do some simple drawing, loading, and saving with Windows Phone 7.&amp;nbsp; Ren&#233; even used multi-touch as well! 
He leverages the WriteableBitmapEx class that extends out the

WriteableBitmap Silverlight class. 
To do a PhotoChooser, the code is simpler than one may think.&amp;nbsp; Since you&#39;re app will navigate away, it works with events. 
public MainPage()
{
   // ...

   // Init chooser
   photoChooserTask = new PhotoChooserTask();
   photoChooserTask.Completed &amp;#43;= PhotoChooserTaskCompleted;
   
   // ...
}

private void ApplicationBarIconOpenButton_Click(object sender, EventArgs e)
{
   photoChooserTask.Show();
}

private void PhotoChooserTaskCompleted(object sender, PhotoResult e)
{
   if (e.TaskResult == TaskResult.OK)
   {
      // Load original image and invalidate bitmap so it gets newly rendered
      var bitmapImage = new BitmapImage();
      bitmapImage.SetSource(e.ChosenPhoto);
      Viewport.Source = bitmapImage;
      bitmap = null;
   }
}


</description>
	<link></link>
	<language>en</language>
	<pubDate>Sat, 18 May 2013 12:46:12 GMT</pubDate>
	<lastBuildDate>Sat, 18 May 2013 12:46:12 GMT</lastBuildDate>
	<generator>Rev9</generator>
</channel>
</rss>