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
 Undo from a layer is applied to other layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

nwscomps

185 Posts

Posted - Oct 10 2018 :  07:06:21  Show Profile  Reply
When I use undo, the picture in the undo is applied to whatever layer is the current one. Instead It should store the layer GUID to identify on which layer to apply the undo.
I have tried the Timageenproc.GetUndoInfo, but it does not give me any information about which layer the undo belongs to.

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html

xequte

38127 Posts

Posted - Oct 10 2018 :  19:47:36  Show Profile  Reply
Hi Francesco

The Undo information record stores the ID of the modified layer.

Can you give me the steps to reproduce the issue you see.


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

nwscomps

185 Posts

Posted - Oct 11 2018 :  05:10:06  Show Profile  Reply
Here are the steps:

imageenview1.Proc.AutoUndo := true;
imageenview1.LayersCurrent := 0;
imageenview1.IO.LoadFromFile('05.jpg');
imageenview1.LayersCurrent := imageenview1.LayersAdd('04.jpg');
imageenview1.Proc.IntensityRGBAll(100,100,100);
imageenview1.LayersCurrent := 0;
imageenview1.Proc.Undo;

If you need I have also demo project

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
Go to Top of Page

nwscomps

185 Posts

Posted - Oct 11 2018 :  05:17:35  Show Profile  Reply
Also could you make the Id of the layer available through the GetUndoInfo method?

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
Go to Top of Page

xequte

38127 Posts

Posted - Oct 11 2018 :  19:12:18  Show Profile  Reply
Hi Francesco

You can email me for an update that addresses both of these.

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