Twain.SetResolutionX
--------------------

Sets the horizontal resolution for scanning.

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

MBS( "Twain.SetResolutionX"; Value ) 

**MBS**( **"Twain.SetResolutionX"** /\* Sets the horizontal resolution for scanning. \*/  
**$Value**) /\* The horizontal resolution value. e.g. 300 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The horizontal resolution value. | 300 |

### Result

Returns OK.

### Description

Sets the horizontal resolution for scanning.  
This value is stored and next time you call Acquire the plugin will ask the scanner to use this resolution. If the scanner does not support the resolution, the scanner will use the last valid setting.  
  
If the scanner only supports certain resolutions as with HP M175 (75, 100, 200, 300, 600, 1200), use only one of the resolutions according the GUI Acquire settings in the dialogue. In this case "150" is not possible!  
### See also

- [Twain.GetResolutionX](TwainGetResolutionX.md)
- [Twain.GetResolutionY](TwainGetResolutionY.md)
- [Twain.SetResolutionY](TwainSetResolutionY.md)

This function is free to use.

Created 18th August 2014 , last changed 15th May 2016

  
[Twain.SetPixelType](TwainSetPixelType.md) - [Twain.SetResolutionY](TwainSetResolutionY.md)

[HTML Version](TwainSetResolutionX.shtml)