Created
February 19, 2014 13:00
-
-
Save kkdai/9091481 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private async void LoadImage_Click_1(object sender, RoutedEventArgs e) | |
| { | |
| StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Image/Tulips.jpg")); | |
| using (IRandomAccessStream fileStream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read)) | |
| { | |
| BitmapImage image = new BitmapImage(); | |
| image.SetSource(fileStream); | |
| Scenario4Image.Source = image; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment