VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain Namespace / AcquiredImageCollection Class / Add Method / Add(Stream,Int32) Method
Stream with image data.
Index of page to load.




In This Topic
    Add(Stream,Int32) Method
    In This Topic
    Adds an image to the internal images buffer.
    Syntax
    'Declaration
     
    Public Overloads Sub Add( _
       ByVal stream As Stream, _
       ByVal pageIndex As Integer _
    ) 
    'Usage
     
    Dim instance As AcquiredImageCollection
    Dim stream As Stream
    Dim pageIndex As Integer
     
    instance.Add(stream, pageIndex)
    public void Add( 
       Stream stream,
       int pageIndex
    )
    public: void Add( 
       Stream* stream,
       int pageIndex
    ) 
    public:
    void Add( 
       Stream^ stream,
       int pageIndex
    ) 

    Parameters

    stream
    Stream with image data.
    pageIndex
    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: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also