# SaveSettings.ImageExportFilterIndex Property

> Sets the format used for saving all images contained in the document. This is the number of the filter in the string returned through the ImageCollection.ExportFilters property, beginning with number one. If the ImageCollection.ExportFilters property is used to initialize the FileDialog.Filter property of a Framework dialog, the FileDialog.FilterIndex property can be used as value for this property. A value of zero indicates that the original format of each image is used. The original format can be obtained with the Image.FilterIndex property. For a single image the value of this property can be overwritten with the Image.ExportFilterIndex property. The technical article Loading and Saving Images describes how images can be loaded and saved.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.1
- **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.ImageExportFilterIndex Property
- **830 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imageexportfilterindex-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imageexportfilterindex-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imageexportfilterindex-property/llms-full.txt

---

### Description

Sets the format used for saving all images contained in the document. This is the number of the filter in the string returned through the [ImageCollection.ExportFilters](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/imagecollection/exportfilters-property/llms-full.txt) property, beginning with number one. If the [ImageCollection.ExportFilters](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/imagecollection/exportfilters-property/llms-full.txt) property is used to initialize the `FileDialog.Filter` property of a Framework dialog, the `FileDialog.FilterIndex` property can be used as value for this property. A value of zero indicates that the original format of each image is used. The original format can be obtained with the [Image.FilterIndex](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/image/filterindex-property/llms-full.txt) property. For a single image the value of this property can be overwritten with the [Image.ExportFilterIndex](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/image/exportfilterindex-property/llms-full.txt) property. The technical article Loading and Saving Images describes how images can be loaded and saved.

### Syntax

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

```vbnet
Public Property ImageExportFilterIndex As Integer
```

### Members

| Value | Description |
|---|---|
| 1 | Windows Bitmap (.BMP) |
| 2 | Windows Metafile (.WMF) |
| 3 | Portable Network Graphics (.PNG) |
| 4 | JPEG File Interchange Format (.JPG, .JPEG) |
| 5 | Windows Enhanced Metafile (.EMF) |
| 6 | Tagged Image Format (.TIF) |
| 7 | Graphics Interchange Format (.GIF) |

### Examples

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

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

saveSettings.ImageExportFilterIndex = 1;
Console.WriteLine($"Image Export Filter Index used by Save Settings: {saveSettings.ImageExportFilterIndex}");

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

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

saveSettings.ImageExportFilterIndex = 1
Console.WriteLine($"Image Export Filter Index used by Save Settings: {saveSettings.ImageExportFilterIndex}")

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

---

## Nearby

- **Previous:** [SaveSettings.ImageCompressionQuality Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagecompressionquality-property/llms-full.txt)
- **Next:** [SaveSettings.ImageMaxResolution Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imagemaxresolution-property/llms-full.txt)
