VintaSoft Twain .NET SDK v10.2
Add(String,Int32) Method




Vintasoft.WpfTwain Namespace > AcquiredImageCollection Class > Add Method : Add(String,Int32) Method
Filename of image file.
Index of page to load.
Adds an image to the internal images buffer.
Syntax
'Declaration
 
Public Overloads Sub Add( _
   ByVal filename As String, _
   ByVal pageIndex As Integer _
) 
'Usage
 
Dim instance As AcquiredImageCollection
Dim filename As String
Dim pageIndex As Integer
 
instance.Add(filename, pageIndex)
public void Add( 
   string filename,
   int pageIndex
)
public: void Add( 
   string* filename,
   int pageIndex
) 
public:
void Add( 
   String^ filename,
   int pageIndex
) 

Parameters

filename
Filename of image file.
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

Reference

AcquiredImageCollection Class
AcquiredImageCollection Members
Overload List