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
 Replace all layers with merged result
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

spetric

Croatia
308 Posts

Posted - Jan 08 2019 :  05:34:52  Show Profile  Reply
Hi,

Is there any "shortcut" method that can merge all layers and replace layers content with merged result, i.e. perform merging without decreasing layers count?

TIA,
Siniša

xequte

38615 Posts

Posted - Jan 08 2019 :  21:17:44  Show Profile  Reply
Hi Sinisa

You can use LayersSaveMergedTo to output all layers without removing them.

https://www.imageen.com/help/TImageEnView.LayersSaveMergedTo.html

But that doesn't sound like what you are looking for. Can you give me more info?



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

spetric

Croatia
308 Posts

Posted - Jan 09 2019 :  09:10:50  Show Profile  Reply
Let's say I have 3 layers: background image and 2 copies of the same image.
I perform 2 image processing task on last 2 layers.

Then user blends layers (transparency). The result is merged as
new background image/layer and again I need two copies of the same resulting image as 2 layers for second iteration.

I can use "standard" merge and then add 2 new layers and assign background image to them, but I thought there were some simple method to preserve layers number.

Go to Top of Page

xequte

38615 Posts

Posted - Jan 09 2019 :  17:36:15  Show Profile  Reply
Hi Sinisa

I'm afraid there is not a function for that.

You would need to use LayersSaveMergedTo/LayersDrawTo to output the layers to a TIEBitmap and then assign to the 2 other layers (or call LayersMergeAll and just add the layers again).


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

spetric

Croatia
308 Posts

Posted - Jan 10 2019 :  09:18:01  Show Profile  Reply
Hi Nigel,

Thanks. I've done it using ieView->LayersMergeAll method and
then perform a loop with ieView->LayersAdd(ieView->Layers[0]->Bitmap);
to recreate layers.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: