Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Error: Value does not fall within the expected range

$
0
0

Run the following code in Windows 2008 x64 as a desktop application in c#

byte[] arrImage = File.ReadAllBytes(PathImage);
MemoryStream ms = new MemoryStream(arrImage);

BitmapDecoder bitmapDecoder = JpegBitmapDecoder.Create(ms, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad);

// Error: Value does not fall within the expected range
// or
// BitmapDecoder bitmapDecoder = BitmapDecoder.Create(ms, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad);

Someone who can guide me with this error. Just some pictures

thk


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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