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
 Duplicate multiple selected 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
yogiyang Posted - Oct 01 2020 : 07:15:57
Hello,

In my software I am allowing user to select multiple layers. After selecting multiple layers if the user tries to duplicate layer only the last selected layer is getting duplicated. Actually all the selected layers (along with their masks) should get duplicated.

What is the best way to do this?

TIA


Yogi Yang
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 08 2020 : 00:46:05
Hi Yogi

To understand this better, is this a function like "Duplicate" selected layers?

There is a LayersAdd overload to clone a layer.

Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Oct 07 2020 : 09:15:04
Hello Nigel,

After your last post in this thread I got the idea to build an array of selected layers and then add them using something like this snippet:

ieViewMain.LayersAdd(ieViewMain.Layers[idx].Bitmap);
ieViewMain.CurrentLayer.PosX := ieViewMain.Layers[idx].PosX;
ieViewMain.CurrentLayer.PosY := ieViewMain.Layers[idx].PosY;


And this is working but I would like to know if there is a better solution to achieve this.

TIA


Yogi Yang
xequte Posted - Oct 06 2020 : 16:23:59
Hi Yogi

LayersCreateFromSelection() only makes a single image layer from the selection content in another image layer. That doesn't sound like what you are trying to do.

Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Oct 05 2020 : 06:47:22
Hello Nigel,

I am using LayersCreateFromSelection.

Is there any better way to do this?

TIA


Yogi Yang
xequte Posted - Oct 02 2020 : 21:04:44
Hi Yogi

What method is being used to duplicate the layers?

Nigel
Xequte Software
www.imageen.com