# SaveSettings.ImageMaxResolution Property

> Sets the maximum resolution for all images in the document in dots per inch when the document is saved. If an image's resolution is larger than this property's value it is reduced otherwise it is not changed. If this property's value is zero, which is the default value, the default resolution of each image is used. For a single image the value of this property can be overwritten using the Image.ExportMaxResolution property.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 11.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > SaveSettings.ImageMaxResolution Property
- **563 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagemaxresolution-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagemaxresolution-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagemaxresolution-property/llms-full.txt

---

### Description

Sets the maximum resolution for all images in the document in dots per inch when the document is saved. If an image's resolution is larger than this property's value it is reduced otherwise it is not changed. If this property's value is zero, which is the default value, the default resolution of each image is used. For a single image the value of this property can be overwritten using the [Image.ExportMaxResolution](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/image/exportmaxresolution-property/llms-full.txt) property.

### Syntax

```csharp
public int ImageMaxResolution { get; set; }
```

```vbnet
Public Property ImageMaxResolution As Integer
```

### Examples

The following example configures how the current document is exported to WordprocessingML by using `SaveSettings.ImageMaxResolution`.

```csharp
textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.ImageMaxResolution = 10;
Console.WriteLine($"Image Max Resolution used by Save Settings: {saveSettings.ImageMaxResolution}");

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);
```

```vbnet
textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()

saveSettings.ImageMaxResolution = 10
Console.WriteLine($"Image Max Resolution used by Save Settings: {saveSettings.ImageMaxResolution}")

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)
```

---

## Nearby

- **Previous:** [SaveSettings.ImageExportFilterIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imageexportfilterindex-property/llms-full.txt)
- **Next:** [SaveSettings.ImageSaveMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagesavemode-property/llms-full.txt)
