How to create WriteableBitmap from BitmapImage?
问题 I could create WriteableBitmap from pictures in Assets. Uri imageUri1 = new Uri("ms-appx:///Assets/sample1.jpg"); WriteableBitmap writeableBmp = await new WriteableBitmap(1, 1).FromContent(imageUri1); but, I can't create WriteableBitmap from Pictures Directory,(I'm using WinRT XAML Toolkit) //open image StorageFolder picturesFolder = KnownFolders.PicturesLibrary; StorageFile file = await picturesFolder.GetFileAsync("sample2.jpg"); var stream = await file.OpenReadAsync(); //create bitmap