
This property returns a string which specifies the available image filters. This string can be used to initialize the Filter property of a Common Dialog control.
TXTextControl.ImageFilters
The filter names are read from the tx17_ic.ini file. Filters for JPEG, PNG, TIFF, Bitmap and Windows Metafiles are supplied.
String.
Read only, run time only.
This Basic example initializes an OpenFile dialog box with the names of the available image filters and then loads a selected image:
dlgFile.DialogTitle = "Insert Image" dlgFile.Filename = "" dlgFile.Filter = TXTextControl1.ImageFilters dlgFile.FilterIndex = 1 dlgFile.Flags = cdlOFNPathMustExist Or cdlOFNFileMustExist _ Or cdlOFNHideReadOnly dlgFile.CancelError = True dlgFile.ShowOpen TXTextControl1.ImageInsertAsChar dlgFile.Filename, -1, 100, 100