ImageEn, unit iexLayers

TIELayer.Assign

TIELayer.Assign


Declaration


procedure Assign(Source: TIELayer);


Description


Copy the content of a layer to the current one.


Example


// Assign layers from one ImageEnView to another
// Note: ImageEnView2.assign( ImageEnView1 ) will assign all content including layers
for I := 0 to ImageEnView1.LayersCount - 1 do
begin
  iLayer := ImageEnView2.LayersAdd; // append a new layer
  ImageEnView2.Layers[ iLayer ].Assign( ImageEnView1.Layers[ i ] );
end;
ImageEnView2.Update();