ImageEn, unit iewic

TIEWICWriter.PutFrame

TIEWICWriter.PutFrame


Declaration

procedure PutFrame(srcBitmap: TIEBitmap; IOParams: TIOParams = nil; OnProgressFunc: TIEProgressEvent = nil);


Description

Adds a new frame to current open stream or file.
You can call multiple PutFrame only if the writing file format accepts more than one frame.
If IOParams is specified parameters (DPI, compression) are read from it.
PutFrame doesn't write EXIF metatags: you must use InjectTIFFEXIF to inject EXIF in HDPhoto or TIFF files.
It is important that you close the stream/file before inject EXIF metatags.


Example

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