VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / AcquiredImageCollection Class / Add Methods / Add(Stream,Int32) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    Add(Stream,Int32) Method (AcquiredImageCollection)
    In This Topic
    Adds images from specified stream to this collection.
    Syntax
    'Declaration
    
    Public Overloads Sub Add( _
    ByVal stream
    A stream that contains image file.
    As System.IO.Stream, _
    ByVal pageIndex
    An index of page to load.
    As Integer _
    )

    Parameters

    stream
    A stream that contains image file.
    pageIndex
    An index of page to load.
    Exceptions
    ExceptionDescription
    Thrown if filename is null.
    Thrown if pageIndex is less 0 -OR- greater than page count.
    Thrown if image has unsupported format.
    Remarks

    This method allows to load only image formats supported by .NET Framework: BMP, GIF, multipage GIF, JPEG, PNG, TIFF, multipage TIFF.

    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