VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructor / VintasoftImage Constructor(String,Boolean)
The name of the image file.
Determines that file should be opened in readonly mode.
Example



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

    Parameters

    filename
    The name of the image file.
    readOnlyMode
    Determines that file should be opened in readonly mode.
    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 only 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 only mode,
    ' file stream will be closed when image is disposed)
            ' ...
    Using image As New Vintasoft.Imaging.VintasoftImage(filepath, True)
    End Using
    string filepath = @"D:\Example.tiff";
    // create an image from file (file will be opened in read only mode,
    // file stream will be closed when image is disposed)
    using (Vintasoft.Imaging.VintasoftImage image = 
        new Vintasoft.Imaging.VintasoftImage(filepath, true))
    {
        // ...
    }
    Requirements

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

    See Also