Twain.SetAutomaticBorderDetection
---------------------------------

Whether to enable automatic border detection when next scan starts.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Twain](component_Twain.md) | [3.3](newinversion33.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Twain.SetAutomaticBorderDetection"; Value ) 

**MBS**( **"Twain.SetAutomaticBorderDetection";** /\* Whether to enable automatic border detection when next scan starts. \*/  
**$Value**) /\* The new settings. Can be 1 to enable automatic border detection or 0 to disable.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new settings. Can be 1 to enable automatic border detection or 0 to disable. | 0 |

### Result

Returns OK.

### Description

Whether to enable automatic border detection when next scan starts.  
This value is stored and next time you call Acquire the plugin will ask the scanner to enable/disable automatic border detection. If the scanner does not support automatic border detection, the scanner will ignore this setting and set it back to -1.  
0 = off, 1 = on, -1 = default/undefined.  
### See also

- [Twain.GetAutomaticBorderDetection](TwainGetAutomaticBorderDetection.md)

### Blog Entries

- [MBS Filemaker Plugin, version 3.3pr1](https://www.mbsplugins.de/archive/2013-05-24/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[Twain.SetAutofeed](TwainSetAutofeed.md) - [Twain.SetAutomaticBrightness](TwainSetAutomaticBrightness.md)

[HTML Version](TwainSetAutomaticBorderDetection.shtml)