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
p0w3r
Posted - Apr 09 2014 : 01:45:31 Is it possible to create multiple instances of a layer? Imagine a layer which is a circle. Then I want to multiply that circle and display it in different positions. Thanks in advance for any help :)
Let's say that layer you want to multiply/clone is layer at index 1. To clone image from this layer to another layer, simply add new layer and assign image from layer #1:
//C++ code, but you can easily translate it to Delphi
ImageEnView->LayersAdd(); // newly added layer becomes current layer (I hope so)
ImageEnView->CurrentLayer->Bitmap->AssignImage(ImageEnView->Layers[1]->Bitmap);