Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: High Resolution Image Load - OutOfMemory

$
0
0
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())
        {
            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 OutOfMemory

How to resolve?

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>