VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructor / VintasoftImage Constructor(String)
The name of the image file.
Example



In This Topic
    VintasoftImage Constructor(String)
    In This Topic
    Initializes a new instance of the VintasoftImage class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal filename As String _
    )
    public VintasoftImage( 
       string filename
    )
    public: VintasoftImage( 
       string* filename
    )
    public:
    VintasoftImage( 
       String^ filename
    )

    Parameters

    filename
    The name of the image file.
    Remarks
    Supported image formats: BMP, DICOM, EMF, GIF, animated GIF, Icon, JBIG2, multipage JBIG2, JPEG, JPEG-LS, JPEG2000, PCX, PDF, multipage PDF, PNG, TIFF, multipage TIFF, WMF.
    Example
    This example shows how to load image from file (file will be opened in read-write mode, file stream will be closed when image is disposed).
    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))
    {
        // ...
    }
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also