ImageEn, unit ievect

TImageEnVect.LoadFromStreamIEV

TImageEnVect.LoadFromStreamIEV


Declaration

function LoadFromStreamIEV(Stream: TStream; AppendObjects: boolean = False): Boolean;


Description

LoadFromStreamIEV loads objects from a stream.
The IEV format is written to save vectorial objects as lines, ellipses and bitmaps (but not background image).
Existing objects will be removed unless AppendObjects is True.
Returns True on success.


Example

// Loads two vectorial images from "maps.iev", and shows them in ImageEnVect1 and ImageEnVect2
var
  fs: TFileStream;
begin
  fs := TFileStream.Create('maps.iev', fmOpenRead);
  try
    ImageEnVect1.LoadFromStreamIEV(fs);
    ImageEnVect2.LoadFromStreamIEV(fs);
  finally
    fs.free;
  end;
end;


See Also

LoadFromFileIEV
SaveToFileIEV
SaveToStreamIEV
LoadFromFileAll
SaveToFileAll
LoadFromStreamAll
SaveToStreamAll
ImportDXF


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of LoadFromStreamIEV, import IEV files as layers using TImageEnView.LayersImport. Load layer files using LoadFromStreamIEN