ImageEn, unit iewic

TIEWICWriter

TIEWICWriter


Description


TIEWICWriter class encapsulates some Microsoft Windows Imaging Component (WIC) interfaces and allows you to write Microsoft HD Photo, JPEG XR and other WIC installed file formats.
WIC preinstalled encoders are TIFF, PNG, GIF, BMP, JPEG, HDP (See: WIC_Save_FileTypes).

Note: Requires Windows XP (SP2) with .Net 3.0, Windows Vista or newer.


Examples


// saves ImageEnView1 to output.wdp, which is the same as ImageEnView1.IO.SaveToFile('output.wdp')
with TIEWICWriter.Create do
begin
  Open('output.wdp', ioHDP);
  PutFrame(ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
  Free;
end;

// saves ImageEnView1 to output.jpg
with TIEWICWriter.Create do
begin
  Open('output.jpg', ioJPEG);
  PutFrame(ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
  Free;
end;

// saves ImageEnView1 and ImageEnView2 as two pages in output.tif
with TIEWICWriter.Create do
begin
  Open('output.tif', ioTIFF);
  PutFrame(ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
  PutFrame(ImageEnView2.IEBitmap, ImageEnView2.IO.Params);
  Free;
end;



Methods and Properties


  Close
  DPIX
  DPIY
  EncoderInfo
  IsAvailable
  Open
  PutFrame


Canonical Encoder Parameter Properties
  CompressionQuality
  ImageQuality
  Lossless


Specific HD Photo Encoder Parameter Properties
  FrequencyOrder
  HorizontalTileSlices
  Overlap
  Quality
  Subsampling
  UseCodecOptions
  VerticalTileSlices