ImageEn, unit iewic

TIEWICReader.IsAvailable

TIEWICReader.IsAvailable


Declaration

function IsAvailable(): boolean;


Description

Returns true if WIC is available.
This should always be true on Windows Vista or newer (or Windows XP SP2 with .NET 3.0).

See also: IEWICAvailable


Example

with TIEWICReader.Create do
  if IsAvailable() then
  begin
    Open( 'C:\input.wdp' );
    GetFrame(0, ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
    Free;
  end;
ImageEnView1.Update;