Saves the image of a specified index in buffer as a TIFF file.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool SaveAsTIFF(
	string strFileName,
	short sImageIndex
)
Visual Basic
Public Function SaveAsTIFF ( _
	strFileName As String, _
	sImageIndex As Short _
) As Boolean

Parameters

strFileName
Type: System..::..String
The name of the TIFF file to be saved. It should be a local path on the local disk.
sImageIndex
Type: System..::..Int16
Specifies the index of image in buffer. The index is 0-based.

Return Value

True indicates success. False indicates failure.

Remarks

TIFF is a built-in feature of Dynamic .NET TWAIN, no other DLLs are required. If IfTiffMultiPage is set to true, and there's a TIFF file with the same name exists on the local disk, the new scanned images will be added to the end of the existing TIFF file. If IfTiffMultiPage is set to false, the existing file with the same name will be replaced by the newly created one.

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also