VintaSoft Imaging .NET SDK 12.3: Documentation for .NET developer
Vintasoft.Imaging Namespace / ImageCollection Class / Add Methods / Add(Stream,Boolean) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    Add(Stream,Boolean) Method (ImageCollection)
    In This Topic
    Adds element(s) to the end of the ImageCollection.
    Syntax
    'Declaration
    
    Public Overloads Sub Add( _
    ByVal stream
    A stream that contains an image file.
    As System.IO.Stream, _
    ByVal closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    As Boolean _
    )

    Parameters

    stream
    A stream that contains an image file.
    closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    Exceptions
    ExceptionDescription
    Thrown if stream is null or stream length is 0.
    Thrown if image is not loaded.
    Remarks

    One VintasoftImage object will be added to this collection if stream contains only one image.
    Multiple VintasoftImage objects will be added to this collection if stream contains a multipage GIF/JBIG2/PDF/TIFF/DOCX/XLSX file.

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also