ImageEn, unit iewic

TIEWICWriter.Open

TIEWICWriter.Open


Declaration

function Open(Stream: TStream; fileType: TIOFileType): boolean;
function Open(const FileName: WideString; fileType: TIOFileType = ioUnknown): boolean;


Description

Creates specified image format in stream or file, enabling subsequent calls to PutFrame calls.
You should call Free or Close in order to commit changes.


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;