Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

MaxImagesInBuffer Property

Description

Returns or sets the maximum number of images can be held in buffer.

Data type

Short

Syntax

ObjectName.MaxImagesInBuffer

Parameters

None.

Remarks

The default value of this property is 1.

If you set a MaxImagesInBuffer which is smaller than HowManyImagesInBuffer, the extra images in buffer will be released.

When image buffer is full, that is HowManyImagesInBuffer = MaxImagesInBuffer, the new acquired or opened 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.

Note: CurrentImageIndexInBuffer is 0 based.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.

See also

HowManyImagesInBuffer property, CurrentImageIndexInBuffer property

 

 

 













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2009 Dynamsoft Corporation. All Rights Reserved.