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
 Issue with layers and undo, redo
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rmklever

Norway
52 Posts

Posted - Feb 18 2025 :  14:29:21  Show Profile  Reply
Hi,

I have a problem with undo and redo when working with layers.

It is easy to reproduce using the Layers_AllTypes demo (Layers.exe).

In the demo open a image and add a image layer to it. Then move the layer around a few times. Do undo all the way to the begining and do the redo to the latest state. You will see that the layer image changes to the background image...

Is this problem fixed in a later version or is there a workaround...


Roy M Klever
Klever on Delphi - www.rmklever.com

xequte

38919 Posts

Posted - Feb 18 2025 :  22:44:53  Show Profile  Reply
Hi Roy

I added this code in FormShow to the Layers_AllTypes demo

ImageEnView1.IO.LoadFromFile('D:\im.jpg' );
ImageEnView1.LayersAdd( 'D:\im3.jpg', 30, 200, 250, 250 );

Then I moved the second image layer 5 times. Then I called Edit > Undo 5 times. The last item offered to remove the layer as expected. Then I called Edit > Redo 5 times to return to the final state. I could not reproduce the issue.

What version of ImageEn are you using?

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