title: Saving an captured image to the local folder
body: <p>I am taking pictures and would like to save them  according to the time they were exactly taken. </p>
  
  <p>I would also like to create a folder named /pictures in the current directory and save the pictures in that folder. This is done in C# &amp; WPF. </p>
  
  <p>This is my code:</p>
  
  <pre><code>Image newimage = new Image();
  BitmapImage myBitmapImage = new BitmapImage(); 
  myBitmapImage.BeginInit();
  
  newimage.Source = Capture(true) // Take picture
  
  myBitmapImage.UriSource = new Uri(@"c:\" + 
             string.Format("{0:yyyy-MM-dd_hh-mm-ss-tt}", DateTime.Now) + ".jpg"); 
  // Gives error: Could not find file 'c:\2013-05-26_04-40-25-AM.jpg'
  
  myBitmapImage.EndInit();
  newimage.Source = myBitmapImage;
  
  newstackPanel.Children.Add(newimage);
  </code></pre>
  
  <p>Results in:
  <strong><em>ERROR</em></strong>   Could not find file 'c:\2013-05-26_04-44-59-AM.jpg'.</p>
  
  <p>Why is it trying to find a file VS just saving the file on the c:\ drive?   </p>