ImageEn, unit iexBitmaps

IEFileIsOfFormat

IEFileIsOfFormat

Declaration

function IEFileIsOfFormat(const FileName: string; FileType: TIOFileType): Boolean;

Description

Returns True if the file has the extension of the specified type.

For example: IEFileIsOfFormat('C:\File.avi', ioAVI) would return True;

Example

if IEFileIsOfFormat( filename, ioBMP ) then
  ShowMessage( 'It is a bitmap' );

See Also

File Format Methods