0
Under review
Loading JPEG to OxyImage
Hello,
I have trouble loading JPEG images to OxyImage. I am using C# and WPF, OxyPlot version 2014.1.546.0 from NuGet. PNG and BMP images work great, but not JPEGs. I tried loading them using stream and bytearray
I have trouble loading JPEG images to OxyImage. I am using C# and WPF, OxyPlot version 2014.1.546.0 from NuGet. PNG and BMP images work great, but not JPEGs. I tried loading them using stream and bytearray
OxyImage image;Both without success (crashes on line with new OxyImage). I get this error message:
FileStream stream = new FileStream(filepath, FileMode.Open);
image = new OxyImage(stream);
OxyImage image1;
byte[] imageArray = File.ReadAllBytes(filepath);
image1 = new OxyImage(imageArray);
System.NotImplementedException was unhandled by user code HResult=-2147467263Can you give me some advice pleasse?
Message=The method or operation is not implemented.
Source=OxyPlot
StackTrace:
at OxyPlot.OxyImage.GetDecoder(ImageFormat format) in c:\projects\oxyplot\Source\OxyPlot\Imaging\OxyImage.cs:line 164
at OxyPlot.OxyImage.UpdateImageInfo() in c:\projects\oxyplot\Source\OxyPlot\Imaging\OxyImage.cs:line 260
at OxyPlot.OxyImage..ctor(Byte[] bytes) in c:\projects\oxyplot\Source\OxyPlot\Imaging\OxyImage.cs:line 48
at TemsaViewer01.PageXYGraph.LoadImages(Experiments exp) in d:\Cloud\VisualStudio\TemsaViewer01\TemsaViewer01\PageXYGraph.xaml.cs:line 101
at TemsaViewer01.PageXYGraph..ctor(Experiments exp) in d:\Cloud\VisualStudio\TemsaViewer01\TemsaViewer01\PageXYGraph.xaml.cs:line 53
at TemsaViewer01.MainWindow..ctor() in d:\Cloud\VisualStudio\TemsaViewer01\TemsaViewer01\MainWindow.xaml.cs:line 34
InnerException:
0
Under review
Oystein Bjorke 10 years ago
Sorry, support for JPEGs are not yet supported. It needs to read the width/height from the header...
Customer support service by UserEcho