# SignatureImage.ExportFilterIndex Property

> Gets or sets the format used if the image is saved. 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 no export format has currently be specified for the image. In this case the original format is used that can be obtained with the SignatureImage.FilterIndex property.

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

---

### Description

Gets or sets the format used if the image is saved. 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 no export format has currently be specified for the image. In this case the original format is used that can be obtained with the [SignatureImage.FilterIndex](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/filterindex-property/llms-full.txt) property.

### Syntax

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

```vbnet
Public Property ExportFilterIndex 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 adds a visible handwritten-signature image to an approval field by using `SignatureImage.ExportFilterIndex`.

```csharp
SignatureImage signatureImage = new(@"Images\alex-smith-signature.svg", 0);
SignatureField approval = new(new System.Drawing.Size(3000, 1000), "ApproverSignature", 10) { Image = signatureImage };
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter);

signatureImage.ExportFilterIndex = 1;
Console.WriteLine($"Export Filter Index used by Signature Image: {signatureImage.ExportFilterIndex}");
```

```vbnet
Dim signatureImage As New SignatureImage("Images\alex-smith-signature.svg", 0)
Dim approval As New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 10) With { .Image = signatureImage }
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter)

signatureImage.ExportFilterIndex = 1
Console.WriteLine($"Export Filter Index used by Signature Image: {signatureImage.ExportFilterIndex}")
```

---

## Nearby

- **Previous:** [SignatureImage.ExportFileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/exportfilename-property/llms-full.txt)
- **Next:** [SignatureImage.ExportMaxResolution Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/exportmaxresolution-property/llms-full.txt)
