VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
using (FileStream fs = File.Open(openFileDialog1.FileName, FileMode.Open))
{
imageViewer1.Images.Add(fs);
fs.Close();
}
and here is correct code:
FileStream fs = File.Open(openFileDialog1.FileName, FileMode.Open); imageViewer1.Images.Add(fs);also you can use this code:
byte[] buf = File.ReadAllBytes(openFileDialog1.FileName); imageViewer1.Images.Add(new MemoryStream(buf));Project that throws unsupported image on the above Images, after opening them successfully: