ImageEn, unit iesettings

TIEImageEnGlobalSettings.FileFormatCount

TIEImageEnGlobalSettings.FileFormatCount


Declaration

property FileFormatCount: Integer;


Description

Returns the number of items in the supported file format array (Read-only).


Demo

Demo  Demos\InputOutput\BatchConvert\BatchConvert.dpr


Example

// Add all image formats that image can save to
var
  i: Integer;
  fmt: TIEFileFormatInfo;
begin
  for i := 0 to IEGlobalSettings().FileFormatCount - 1 do
  begin
    fmt := IEGlobalSettings().FileFormat[i];
    if @fmt.WriteFunction <> nil then // Can save?
      cmbFormat.Items.Add( fmt.FullName + ' (' + fmt.Extensions + ')' );
  end;
  cmbFormat.ItemIndex := 0;
end;


See Also

- FileFormat
- GetFileExtensionsOfType
- GetOpenSaveDialogFilter
- IEFileFormatGetInfo