Description This method specifies the unit of measure of the scanner.
Usage ret = [form.]TWAIN. SetUnit lUnit
Returns ret Long Return TW_OK on success or an error code on failure.
Remarks lUnit Long The unit of measure.
Programing Notes Important: Before scanning, if the scanner specific driver user interface is enabled, the driver most likely will overwrite the scan unit value set by this method.
Scanning units: TW_INCHES 0
TW_CENTIMETERS 1
TW_PICAS 2
TW_POINTS 3
TW_TWIPS 4
TW_PIXELS 5
See Also GetUnit Method