Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
giancarlo
Posted - Aug 04 2015 : 12:58:11 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
1 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Aug 05 2015 : 00:49:46 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;