Declaration
function DecoderInfo(const Filename: string; out FriendlyName: string; out GUID: TGuid; out Extensions: string; out Version: string; out Author: string): boolean; overload;
function DecoderInfo(Stream: TStream; out FriendlyName: string; out GUID: TGuid; out Extensions: string; out Version: string; out Author: string): boolean; overload;
function DecoderInfo(FileFormat: TIOFileType; out FriendlyName: string; out GUID: TGuid; out Extensions: string; out Version: string; out Author: string): boolean; overload;
Description
Returns details of the decoder used for the specified file or file format. Result is false if there is no decoder for this format
Note:
◼Only returns results for Microsoft native supported formats if FileFormat overload is used
◼Out parameters will not be valid unless result is true
var
wicRead: TIEWICReader;
FriendlyName: string;
GUID: TGuid;
Extensions: string;
Version: string;
Author: string;
begin
wicRead := TIEWICReader.Create;
try
if wicRead.DecoderInfo( 'D:\face.jpg', FriendlyName, GUID, Extensions, Version, Author) then
ShowMessage( FriendlyName + ': ' + Extensions );
finally
wicRead.Free;
end;
end;
See Also
◼IEWICFormatSupported
◼EncoderInfo
◼IEWICEnumerateCodecs