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
 ImageEnView1.LayersMerge

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
jrpcguru Posted - May 26 2021 : 19:59:14
Back in August 2020 we struggled with LayersMerge. Your last comment was that it performed merging differently with only 2 layers. I thought the problem was fixed, but I've just bumped into LayersMerge again.

Using your Layers_AllTypes demo program I can draw a single layer or multiple layers. Either way the Merge button, which uses LayersMerge, does nothing. The Merge All button successfully merges the layers. This happens if the image is a .jpg or multi-page .tif.

In my own program, LayersMerge causes an endless series of List Index out of bounds errors, if I have inserted a single layer with either type of file. It isn't completely consistent however. If I make two layers and merge them, then make a new single layer, it does not seem to cause a problem.

Since MergeAll seems to work, I think I will rely on that, but I thought you might want to revisit this behavior.

J.R.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 27 2021 : 19:25:29
Hi JR

Please delete the CHI file from your ImageEn install folder.

The Merge button has no effect unless multiple frames are selected. To merge to the background select layer 0 before merging:

ImageEnView1.Layers[0].Selected := True;
ImageEnView1.LayersMerge();

In the next release you can just use:
ImageEnView1.LayersMerge( True );


Nigel
Xequte Software
www.imageen.com
jrpcguru Posted - May 27 2021 : 18:38:17
I had originally modified the Layers_Alltypes demo to include rich text. However since I discovered an error message every time I tried to launch the help file, I decided to do a full reinstall of 10.0.1. The help file error still continues:




So that means I've now tested with an original copy of the demo.
1. load a file, .jpg or .tif is what I've used.
2. click Add button to add the default shape layer.
3. Select a Text layer and add that.
4. Click merge button. It doesn't matter which layer has focus, it isn't merged into the background. Both are merged with the Merge All button.

Am I misunderstanding what should happen? I change nothing else.

J.R.
xequte Posted - May 27 2021 : 18:16:54
Thanks for the report, JR,

Can you give me some specific steps to take in the Layers_AllTypes demo to reproduce the issue?

Nigel
Xequte Software
www.imageen.com