#include "BiTwain.h"
int CALLBACK SetBatchScanImageCompression (int iCompMode)
Description
This function specifies the current image compression for software batch scanning.
Available image compressions: TCOMP_NOCOMP (201) - No compression
TCOMP_PACKBITS (202) - Packbit
TCOMP_LZW (203) - LZW
TCOMP_LZW_DIFF (204) - LZW with differentiation
TCOMP_CCITTG2 (205) - CCITT Group 3 1D NO EOL
TCOMP_CCITTG31D (206) - CCITT Group 3 1D
TCOMP_CCITTG32D (207) - CCITT Group 3 2D
TCOMP_CCITTG4 (208) - CCITT Group 4
TCOMP_JPEG (209) - JPEG
If the compression mode is not available for curent image settings, the compression mode will be TCOMP_CCITTG4 if the image is monochrome otherwise TCOMP_LZW_DIFF.
Parameters
|
int |
iCompMode |
The compression mode to set. |
Return values
Return TW_OK on success or an error code on failure.
Requirements
Header : Declared in BiTwain.h; include BiTwain.h.
Library : Use BiTwain.lib.
DLLs : BiTwain.dll.