ImageEn, unit iexBitmaps

IEFilenameToFileFormat

IEFilenameToFileFormat

Declaration

function IEFilenameToFileFormat(const FileName: string): TIOFileType;

Description

Returns the TIOFileType for a filename (based only on the extension, not the content like FindFileFormat).
It will return ioUnknown for unsupported types.

Example

if IEFilenameToFileFormat( filename ) = ioBMP then
  ShowMessage( 'It is a bitmap' );

See Also

File Format Methods