Description This method specifies the scanning mode.
Usage ret = [form.]TWAIN. SetScanMode lMode
Returns ret Long Return TW_OK on success or an error code on failure.
Remarks lMode Long The mode of scanning.
Programing Notes Important: Before scanning, if the scanner specific driver user interface is enabled, the driver most likely will overwrite the scan mode value set by this method.
Scanning modes: TWPT_BW 0
TWPT_GRAY 1
TWPT_RGB 2
TWPT_PALETTE 3
TWPT_CMY 4
TWPT_CMYK 5
TWPT_YUV 6
TWPT_YUVK 7
TWPT_CIEXYZ 8
See Also GetScanMode Method