VintasoftImage Constructor(Stream,Boolean)
Инициализирует новый экземпляр класса
VintasoftImage.
Поддерживаемые форматы изображений: BMP, DICOM, DOCX, XLSX, EMF, GIF, Icon, JBIG2, JPEG, JPEG-LS, JPEG2000, PCX, PDF, PNG, RAW, TIFF, WMF.
Вот C#/VB.NET код, который демонстрирует, как загрузить изображение из потока (поток будет автоматически закрыт при удалении изображения).
Dim filepath As String = "D:\Example.tiff"
' open a file stream
Dim stream As System.IO.Stream = System.IO.File.Open(filepath, System.IO.FileMode.Open)
' create image from stream (stream will be closed automatically when image is disposed)
' ...
Using image As New Vintasoft.Imaging.VintasoftImage(stream, True)
End Using
string filepath = @"D:\Example.tiff";
// open a file stream
System.IO.Stream stream = System.IO.File.Open(filepath, System.IO.FileMode.Open);
// create image from stream (stream will be closed automatically when image is disposed)
using (Vintasoft.Imaging.VintasoftImage image =
new Vintasoft.Imaging.VintasoftImage(stream, true))
{
// ...
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5