SetScanMode

#include "BiTwain.h"

 

int CALLBACK SetScanMode(int mode)

Description

This function specifies the scanning mode.

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

Parameters

Int

mode

This parameter is the code of the scanning mode.

Return values

Return TW_OK on success or an error code on failure.

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

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.