Switchs two images of specified indices in buffer.

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

Syntax

C#
public bool SwitchImage(
	short sImageIndex1,
	short sImageIndex2
)
Visual Basic
Public Function SwitchImage ( _
	sImageIndex1 As Short, _
	sImageIndex2 As Short _
) As Boolean

Parameters

sImageIndex1
Type: System..::..Int16
Specifies the index of image in buffer. The index is 0-based.
sImageIndex2
Type: System..::..Int16
Specifies the index of image in buffer. The index is 0-based.

Return Value

True indicates success. False indicates failure.

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