Returns or sets current index of image in buffer. This is a runtime property.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Remarks
The index is 0 based. Current image is alwarys selected.
By changing CurrentImageIndexInBuffer, you can enumerate all the images in buffer.
When CurrentImageIndexInBuffer is changed, the control will be redrawn to reflect the change.
When an image is added to buffer, the CurrentImageIndexInBuffer is skipped to the next one and the new image is added there.
When image buffer is full, that is HowManyImagesInBuffer = MaxImagesInBuffer, the new acquired or loaded image will replace the existing one, positioned by CurrentImageIndexInBuffer.
For example, if HowManyImagesInBuffer = 4 and MaxImagesInBuffer = 4, CurrentImageIndexInBuffer = 3, after a new image is acquired, the CurrentImageIndexInBuffer is set to 0,
and the 1st image is replaced by the new acquired one . If another image is acquired again, the CurrentImageIndexInBuffer is set to 1 and the 2nd image is replaced by the new acquired one.
If an image is selected, the value of CurrentImageIndexInBuffer will be the index of the selected image.
Exceptions
| Exception | Condition |
|---|---|
| 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. |