ImageEn, unit iexBitmaps

IEFileIsOfFormat


Declaration

function IEFileIsOfFormat(const sFilename: string; aFormat: 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