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
 Issue with layers and undo, redo

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
rmklever Posted - Feb 18 2025 : 14:29:21
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 18 2025 : 22:44:53
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