VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging Namespace / ImageCollection Class / Add Methods / Add(Stream,Boolean,Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    Add(Stream,Boolean,Int32) Method (ImageCollection)
    In This Topic
    Adds an element 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, _
    ByVal pageIndex
    The page index in multipage image image to insert.
    As System.Int32 _
    )

    Parameters

    stream
    A stream that contains an image file.
    closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    pageIndex
    The page index in multipage image image to insert.
    Exceptions
    ExceptionDescription
    Thrown if stream is null or stream length is 0.
    Thrown if image is not loaded.
    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