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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Multiply layer

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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 :)
2   L A T E S T    R E P L I E S    (Newest First)
p0w3r Posted - Apr 09 2014 : 02:44:58
Perfect. Thank you :)
spetric Posted - Apr 09 2014 : 02:30:19
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);