LTWAINPROPERTIES

pLTWAINPROPERTIES= ^LTWAINPROPERTIES; 
LTWAINPROPERTIES= Packed Record
   bPaperSource: L_BOOL
   nMaxNumOfPages: L_INT
   nDuplexScanning: L_INT
   ImageRes: IMAGERESOLUTION
   DataTransfer: DATATRANSFER
   ImageEff: IMAGEEFFECTS
end;

The LTWAINPROPERTIES structure provides information about the available TWAIN properties.

Member

Description

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.

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.)

nDuplexScanning

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

 

Value

Meaning

 

TWDX_NONE

No duplex used.

 

TWDX_1PASSDUPLEX

1 pass duplex.

 

TWDX_2PASSDUPLEX

2 pass duplex.

ImageRes

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

DataTransfer

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

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 GetProperties and SetProperties methods.