VintaSoft Imaging .NET SDK 14.0: Документация для .NET разработчика
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructors / VintasoftImage Constructor(String)
Синтаксис Ремарки Example Требования Смотрите также
В этом разделе
    VintasoftImage Constructor(String)
    В этом разделе
    Инициализирует новый экземпляр класса VintasoftImage.
    Синтаксис
    'Declaration
    
    Public Function New( _
    ByVal filename
    Имя файла изображения.
    As System.String _
    )
    public VintasoftImage(
    System.String filename
    )
    public: VintasoftImage(
    System.String filename
    )
    public:
    VintasoftImage(
    System.String filename
    )

    Parameters

    filename
    Имя файла изображения.
    Ремарки

    Поддерживаемые форматы изображений: 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"
    ' create an image from file (file will be opened in read-write mode,
    ' file stream will be closed when image is disposed)
            ' ...
    Using image As New Vintasoft.Imaging.VintasoftImage(filepath)
    End Using
    
    
    
    string filepath = @"D:\Example.tiff";
    // create an image from file (file will be opened in read-write mode,
    // file stream will be closed when image is disposed)
    using (Vintasoft.Imaging.VintasoftImage image = 
        new Vintasoft.Imaging.VintasoftImage(filepath))
    {
        // ...
    }
    
    

    Требования

    Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также