VintaSoft Twain .NET SDK 15.4: Documentation for .NET developer
Vintasoft.WinTwain Namespace / AcquiredImageCollection Class / Add Methods / Add(String,Int32) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
Add(String,Int32) Method (AcquiredImageCollection)
In This Topic
Adds images from specified file to this collection.
Syntax
'Declaration

Public Overloads Sub Add( _
ByVal filename
A name of image file.
As String, _
ByVal pageIndex
An index of page to load.
As Integer _
)
public void Add(
string filename,
int pageIndex
)

Parameters

filename
A name of 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 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also