Declaration
function IsKnownFormat(const FileName : WideString; bIncludeVideoFiles: Boolean = False) : boolean;
Description
Returns
true if the specified filename is a supported file format that can be loaded.
By default, this only includes image formats. Set bIncludeVideoFiles to true to include AVI, MPEG and WMV
Note: This method only checks that file extension is recognized (e.g. .JPEG of image.jpeg). To examine the content of the image to determine if it is readable use
FindFileFormatSee also:
IsKnownSaveFormatIf IsKnownFormat('C:\test.fax') then
ShowMessage('ok, I can load it');