FASTCONFIG

Summary

The FASTCONFIG structure provides information about a scan configuration to be tested or a scan configuration that is the result of testing.

Syntax

typedef struct _FASTCONFIG 
{ 
   L_UINT   uStructSize; 
   L_UINT   uTransferMode; 
   L_INT    nFileFormat; 
   L_UINT32 ulBufferSize; 
   L_UINT   uTime; 
   L_INT    nBitsPerPixel; 
   L_BOOL   bSuccess; 
} FASTCONFIG,  * pFASTCONFIG; 

Members

L_UINT uStructSize

Size of the FASTCONFIG structure, in bytes, for versioning. Use the sizeof() operator to calculate the value.

L_UINT uTransferMode

Transfer mode for the scan configuration(s). Possible values are:

Value Meaning
LTWAIN_FILE_MODE [0x001] Use File transfer mode
LTWAIN_BUFFER_MODE [0x002] Use Memory transfer mode
LTWAIN_NATIVE_MODE [0x004] Use Native transfer mode

L_INT nFileFormat

Determines the file format that will be used to save scanned images using this scan configuration. Possible values depend on the value of uTransferMode.

L_UINT32 ulBufferSize

Determines the buffer size that will be used with the buffer transfer mode. If this value is 0, use the TWAIN-driver-preferred buffer size.

L_UINT uTime

The amount of time required to scan the pages used for testing the scan configuration. The number of pages depends on how many pages the user loads in the scanner when testing a scan configuration. The same pages should be used for each test.

L_INT nBitsPerPixel

Bits per pixel that will be used.

[L_BOOL bSuccess

Specifies whether the configuration being tested succeeded. Possible values are:

Value Meaning
TRUE The current scan configuration was successful.
FALSE The current scan configuration was not successful.

Comments

pFASTCONFIG is a pointer to a FASTCONFIG structure. Where the function parameter type is pFASTCONFIG, you can declare an FASTCONFIG variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pFASTCONFIG variable is necessary only if your program requires a pointer.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.