IsKnownFormat
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
FindFileFormat
Example
If IsKnownFormat('C:\Test.fax') then
ShowMessage('ok, I can load it');
See Also
◼IsKnownSaveFormat
◼FindFileFormat