See Also Examples Applies To
If this option is available on opened source, try to enable or disable the automatic border detection. It reduces or removes the border generated around an image by the scanner scanning its own platen (the area not covered by the paper).
Syntax
object.TwainSetAutomaticBorderDetection (bAutoBorderDetect)
The TwainSetAutomaticBorderDetection syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| bAutoBorderDetect | Required. Boolean. True to enable automatic border detection, else False. |
Returns
Boolean. TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.
Remarks
Before using this function check that the TWAIN state is TWAIN_SOURCE_OPEN (4)
To get the TWAIN state, use the TwainGetState() function.
Category
TWAIN Functions