#include "BiTwain.h"
int CALLBACK SetUnit(int unit)
Description
This function specifies unit of measure of the scanner.
Important: Before scanning, if the scanner specific driver user interface is enabled, the driver most likely will overwrite the unit value set by this function.
Parameters
|
int |
unit |
Unit of measure to select. |
Return values
Return TW_OK on success or an error code on failure.
Scanning units: TW_INCHES 0
TW_CENTIMETERS 1
TW_PICAS 2
TW_POINTS 3
TW_TWIPS 4
TW_PIXELS 5
Requirements
Header : Declared in BiTwain.h; include BiTwain.h.
Library : Use BiTwain.lib.
DLLs : BiTwain.dll.