i must read in my Photo Viewer high resolution image(20 MP - 41MP). The image are into IsolatedStorage
if i use this code
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
How to resolve?
if i use this code
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var stream = store.OpenFile(this.location, FileMode.Open))
{
var bitmapImage = new BitmapImage();
bitmapImage.SetSource(stream);
bitmapImage.CreateOptions = BitmapCreateOptions.None;
var bmp = new WriteableBitmap((BitmapSource)bitmapImage);
bitmapImage.UriSource = (Uri)null;
return bmp;
}
}
receive OutOfMemoryHow to resolve?