ImageEn, unit iewic

TIEWICWriter


Declaration

TIEWICWriter = class;


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

// Save ImageEnView1 to output.wdp
// This is the same as ImageEnView1.IO.SaveToFile('output.wdp')
with TIEWICWriter.Create do
begin
  Open( 'd:\output.wdp' );
  PutFrame(ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
  Free;
end;

// Save ImageEnView1 to output.jpeg
// This is the same as ImageEnView1.IO.SaveToFile('output.jpeg')
with TIEWICWriter.Create do
begin
  Open( 'd:\output.jpeg' );
  PutFrame(ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
  Free;
end;

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

Methods and Properties


Properties
Public Property  DpiX
Public Property  DpiY

Methods
Public Method  Close
Public Method  EncoderInfo
Public Method  IsAvailable
Public Method  Open
Public Method  PutFrame

Canonical Encoder Parameter Properties
Public Property  CompressionQuality
Public Property  ImageQuality
Public Property  Lossless

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