# Image.ExportMaxResolution Property

> Gets or sets the maximum resolution in dots per inch used if this image is saved. If the 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, Text Control uses the maximum resolution set with the SaveSettings.ImageMaxResolution property or the image's default resolution.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 11.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > Image.ExportMaxResolution Property
- **613 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportmaxresolution-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportmaxresolution-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportmaxresolution-property/llms-full.txt

---

### Description

Gets or sets the maximum resolution in dots per inch used if this image is saved. If the 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, Text Control uses the maximum resolution set with the [SaveSettings.ImageMaxResolution](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/imagemaxresolution-property/llms-full.txt) property or the image's default resolution.

### Syntax

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

```vbnet
Public Property ExportMaxResolution As Integer
```

### Examples

The following example inserts and configures a named, accessible company logo by using `Image.ExportMaxResolution`.

```csharp
TXTextControl.Image image = new() { FileName = @"Images\company-logo.png", Name = "CompanyLogo" };
textControl.Images.Add(image, -1);

image.ExportMaxResolution = 150;
Console.WriteLine($"Export Max Resolution used by Image: {image.ExportMaxResolution}");

textControl.Save("report-with-logo.docx", StreamType.WordprocessingML);
```

```vbnet
Dim image As New TXTextControl.Image() With { .FileName = "Images\company-logo.png", .Name = "CompanyLogo" }
textControl.Images.Add(image, -1)

image.ExportMaxResolution = 150
Console.WriteLine($"Export Max Resolution used by Image: {image.ExportMaxResolution}")

textControl.Save("report-with-logo.docx", StreamType.WordprocessingML)
```

---

## Nearby

- **Previous:** [Image.ExportFilterIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportfilterindex-property/llms-full.txt)
- **Next:** [Image.FileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/filename-property/llms-full.txt)
