Saving image captured using webcam in metro apps
<p>I'm new to metro app coding. I know how to capture image and display in image block. But then I want to save in picture library and I do not have any idea about it what to do. Here is the code of what I have done till now.</p>

<pre><code>private async void Button_Click_1(object sender, RoutedEventArgs e)       
{          
    var ui = new CameraCaptureUI();           
    ui.PhotoSettings.CroppedAspectRatio = new Size(4, 3);            
    var file = await ui.CaptureFileAsync(CameraCaptureUIMode.Photo);

    if (file != null)
    {
         var bitmap = new BitmapImage();
         bitmap.SetSource(await file.OpenAsync(FileAccessMode.Read));
         Photo.Source = bitmap;
    }

    // Do something useful w/ the file  
}
</code></pre>
