Hi
I cannot reproduce that here.
When I call loadfromfileIEN(FileName, True) the existing background and layers are not touched and the background of the loaded file becomes an image layer.
If you do not want the background of the loaded image to be added, see the following examples...
// Append layers from a file, except the background layer
ImageEnView1.LockUpdate;
cnt := ImageEnView1.LayersCount;
ImageEnView1.IO.LoadFromFileIEN( 'D:\layers.ien', True );
ImageEnView1.LayersRemove( cnt );
ImageEnView1.UnlockUpdate();
// Load a background image, and add annotations from a layer file (except background or other image layers)
ImageEnView1.LockUpdate;
ImageEnView1.IO.LoadFromFile( 'D:\Background.jpg', True );
ImageEnView1.IO.LoadFromFileIEN( 'D:\layers.ien' );
for I := ImageEnView1.LayersCount - 1 downto 1 do
if ImageEnView1.Layers[ I ] is TIEImageLayer then
ImageEnView1.LayersRemove( I );
ImageEnView1.UnlockUpdate();
Nigel
Xequte Software
www.imageen.com