ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 save layer set without background?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
stkwon Posted - Oct 25 2018 : 23:52:37
i using .ien layer set files.

if i loaded one ien file and

i want add more layers from .ien files.

so, loaded .ien file with loadfromfileIEN(FileName, True) <--

then backgroud image is change to new loaded .ien file.

how can i keep stay original background ?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 26 2018 : 21:45:09
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