GetScanConfigs method (Twain Control)
Builder Syntax |
int GetScanConfigs(int nBitsPerPixel, unsigned uTransferMode, int nBufferIteration, ppFASTCONFIG ppFastConfig, L_PINT pnFastConfigCount); |
Delphi Syntax |
Function GetScanConfigs (nBitsPerPixel: L_INT; uTransferMode: L_UINT; nBufferIteration: L_INT; ppFastConfig: ppFASTCONFIG; pnFastConfigCount: L_PINT ): L_INT; |
Overview |
Refer to Fast TWAIN (Scan Configurations). |
Remarks
(Document/Medical only) Gets the default scan configurations for the given transfer mode, buffer iteration and bits per pixel.
If uTransferMode is LTWAIN_NATIVE_MODE, this method will use the value of nBitsPerPixel to determine which scan configurations to get.
If uTransferMode is LTWAIN_BUFFER_MODE, this method will use both nBitsPerPixel and nBufferIteration to determine which scan configurations to get.
If uTransferMode is LTWAIN_FILE_MODE, this method will use the value of nBitsPerPixel to determine which scan configurations to get.
This method allocates storage for the array of scan configurations in ppFastConfig. When this storage is no longer needed, you must free the storage by calling FreeScanConfig.
See Also