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
 Multiply layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

p0w3r

Norway
5 Posts

Posted - Apr 09 2014 :  01:45:31  Show Profile  Reply
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 :)

spetric

Croatia
308 Posts

Posted - Apr 09 2014 :  02:30:19  Show Profile  Reply
Yes it's possible.

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);


Go to Top of Page

p0w3r

Norway
5 Posts

Posted - Apr 09 2014 :  02:44:58  Show Profile  Reply
Perfect. Thank you :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: