Twain.SetAutomaticBrightness
----------------------------

Enables or disables the Source's Auto-brightness function (if any).

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

MBS( "Twain.SetAutomaticBrightness"; Value ) 

**MBS**( **"Twain.SetAutomaticBrightness";** /\* Enables or disables the Source's Auto-brightness function (if any). \*/  
**$Value**) /\* The new settings. Can be 1 to enable automatic brightness or 0 to disable.e.g. 0 \*/ 

### Parameters

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

### Result

Returns OK.

### Description

Enables or disables the Source's Auto-brightness function (if any).  
The setting is -1 if not set.  
### See also

- [Twain.GetAutomaticBrightness](TwainGetAutomaticBrightness.md)

This function is free to use.

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

  
[Twain.SetAutomaticBorderDetection](TwainSetAutomaticBorderDetection.md) - [Twain.SetAutomaticRotate](TwainSetAutomaticRotate.md)

[HTML Version](TwainSetAutomaticBrightness.shtml)