ImageEn, unit iexBitmaps

IEFileFormatGetInfo


Declaration

function IEFileFormatGetInfo(FileType: TIOFileType): TIEFileFormatInfo; overload;
function IEFileFormatGetInfo(Extension: string): TIEFileFormatInfo; overload;


Description

Returns a TIEFileFormatInfo object which contains details about the specified file format.
Either specify by FileType or file extension (e.g. '.gif' or 'gif').
Result is nil if the format is not registered.

Note: Does not support video formats: ioAVI, ioWMV, ioMPEG


Example

// Get a suitable file extension for saving a JPEG
sExt := IEFileFormatGetInfo(ioJPEG).SuitableExtension;  // returns 'jpeg'

// Get a description of JPEG files
sFormatName := IEFileFormatGetInfo(ioJPEG).FullName;  // returns 'JPEG Image'

// Get a description of .JPEG files
sFormatName := IEFileFormatGetInfo('.JPEG').FullName;  // returns 'JPEG Image'


See Also

FileFormat
GetFileExtensionsOfType
GetOpenSaveDialogFilter