Gets or sets the format used if an 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 Image.FilterIndex property. The technical article Loading and Saving Images describes how images can be loaded and saved.


public int ExportFilterIndex { get; set; }
Public Property ExportFilterIndex() As Integer


Member 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)


In this example the 'ExportFilterIndex' property is set to '3' - which indicates the 'Portable Network Graphics (PNG).

TXTextControl.Image myImage = new TXTextControl.Image();

myImage.Sizeable = false;
myImage.HorizontalScaling = 75;
myImage.VerticalScaling = 75;
myImage.ExportCompressionQuality = 100;
myImage.ExportFileName = "MyFileName.PNG";
myImage.ExportFilterIndex = 3; // Here, the 'ExportFilterIndex' is set to 3 (->> 'PNG')

textControl1.Images.Add(myImage, -1);
Dim myImage As TXTextControl.Image = New TXTextControl.Image()

myImage.Sizeable = False
myImage.HorizontalScaling = 75
myImage.VerticalScaling = 75
myImage.ExportCompressionQuality = 100
myImage.ExportFileName = "MyFileName.PNG"
myImage.ExportFilterIndex = 3 ' Here, the 'ExportFilterIndex' is set to 3 (->> 'PNG')

textControl1.Images.Add(myImage, -1)