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
 add new layer from variable number of layer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

klausdoege

Germany
289 Posts

Posted - Dec 02 2019 :  07:54:15  Show Profile  Reply
Hi,
does anyone know how I can reduce a
variable number of layer to a new layer above?
An example would be helpful.



Klaus
www.klausdoege.de

xequte

4888 Posts

Posted - Dec 02 2019 :  13:19:43  Show Profile  Reply
Hi Klaus

One of the LayersMerge overrides takes an array of layer indexes:

https://www.imageen.com/help/ImageEn/TImageEnView.LayersMerge.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

klausdoege

Germany
289 Posts

Posted - Dec 03 2019 :  06:29:49  Show Profile  Reply
Hi Nigel,
i now this procedure.
procedure LayersMerge(LayerList: array of integer); overload;
Description:
LayerList: An array of layer indexes to remove. The array must be ordered and all layers will be merged into the layer specified by the first index. Empty list means "all layers".

But I do not want to remove layers, just merge all existing layers and expand as a new layer.
Can you give me an example with source code for it?

Klaus
www.klausdoege.de
Go to Top of Page

xequte

4888 Posts

Posted - Dec 03 2019 :  14:07:01  Show Profile  Reply
Hi Klaus

So merge the layers into a new layer, but then not remove them?

I'm not sure we have a method for that at present. You might need to clone the layers and then do it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: