LTWAINPROPERTIES

typedef struct _LTWAINPROPERTIES 
{ 
   L_UINT uStructSize; 
   L_BOOL bPaperSource; 
   L_INT nMaxNumOfPages; 
   L_INT nDuplexScanning; 
   IMAGERESOLUTION ImageRes; 
   DATATRANSFER DataTransfer; 
   IMAGEEFFECTS ImageEff; 
} LTWAINPROPERTIES,  * pLTWAINPROPERTIES; 

The LTWAINPROPERTIES structure provides information about the available TWAIN properties.

Members

L_UINT uStructSize

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

L_BOOL bPaperSource

Flag that indicates whether to use the Auto - Feed capability of the selected TWAIN source. Possible values are:

Value Meaning
TRUE Use the Auto - Feed capability.
FALSE Do not use the Auto - Feed capability.

L_INT nMaxNumOfPages

The maximum number of pages to get from the TWAIN source. (If the function updates this field to -1, it means that the number of pages is unlimited.)

L_INT nDuplexScanning

Sets the type of duplex scanning. Possible values are (according to the TWAIN specification):

Value Meaning
TWDX_NONE No duplex used.
TWDX_1PASSDUPLEX 1 pass duplex.
TWDX_2PASSDUPLEX 2 pass duplex.

IMAGERESOLUTION ImageRes

A structure of type IMAGERESOLUTION that contains image resolution data for the TWAIN source.

DATATRANSFER DataTransfer

A structure of type DATATRANSFER that contains data transfer information for the TWAIN source.

IMAGEEFFECTS ImageEff

A structure of type IMAGEEFFECTS that contains image effects information for the TWAIN source.

Comments

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

LTWAINPROPERTIES is used with the LTwain::GetProperties and LTwain::SetProperties functions.

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

LEADTOOLS TWAIN C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.