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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Duplicate imageenview layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

giancarlo

Italy
65 Posts

Posted - Aug 04 2015 :  12:58:11  Show Profile  Reply
There is a fast method to duplicate all layers from a imageenview to another imageenview?
i've tried with .assign but layers are merged.

thank you

xequte

38514 Posts

Posted - Aug 05 2015 :  00:49:46  Show Profile  Reply
You can use ImageEnView2.assign( ImageEnView1 ) which will assign all content including layers from one ImageEnView to another.

If you only want to assign layers use:

for I := 0 to ImageEnView1.LayersCount - 1 do
begin
  iLayer := ImageEnView2.LayersAdd; // append a new layer
  ImageEnView2.Layers[ iLayer ].Assign( ImageEnView1.Layers[ i ] );
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: