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.
// 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;
Properties
Methods
Canonical Encoder Parameter Properties
Specific HD Photo Encoder Parameter Properties