ImageEn, unit iewic

TIEWICWriter.EncoderInfo

TIEWICWriter.EncoderInfo


Declaration

function EncoderInfo(FileFormat: TIOFileType; out FriendlyName: string; out GUID: TGuid; out Extensions: string; out Version: string; out Author: string): boolean;


Description

Returns details of the encoder used for the specified format. Result is false if there is no encoder for this format

Note:
Only returns results for Microsoft native supported formats
Out parameters will not be valid unless result is true


Example

var
  wicWrite: TIEWICWriter;
  FriendlyName: string;
  GUID: TGuid;
  Extensions: string;
  Version: string;
  Author: string;
begin
  wicWrite := TIEWICWriter.Create;
  try
    if wicWrite.EncoderInfo( ioJPEG, FriendlyName, GUID, Extensions, Version, Author) then
      ShowMessage( FriendlyName + ': ' + Extensions );
  finally
    wicWrite.Free;
  end;
end;


See Also

IEWICFormatSupported
DecoderInfo
IEWICEnumerateCodecs