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
 Reset Image Question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PaulAtMass

United Kingdom
19 Posts

Posted - Apr 16 2018 :  07:06:26  Show Profile  Reply
Hi, I've been looking through the ImageEnView and TIEBitmap methods but can't find a revert to original function. After performing flip, rotation, zoom is there a single function to revert the image back to the original without having to reload it?

thanks

klausdoege

Germany
389 Posts

Posted - Apr 16 2018 :  08:58:51  Show Profile  Reply
Hi,
the easy way, you can use ImageEnView1.Proc.Undo.
Klaus


Klaus
www.klausdoege.de
Go to Top of Page

w2m

USA
1990 Posts

Posted - Apr 16 2018 :  09:21:16  Show Profile  Reply


procedure TForm1.FormCreate(Sender: TObject);
begin
  ImageEnView1.Proc.UndoLimit := 99;
  ImageEnView1.Proc.AutoUndo := True;
end;

procedure TForm1.UndoAll1Click(Sender: TObject);
var
  i: Integer;
begin
   if ImageEnView1.CurrentLayer is TIEImageLayer then
   begin
      for i := 0 to ImageEnView1.Proc.UndoCount - 1 do
        ImageEnView1.Proc.Undo(True);
    end;
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38180 Posts

Posted - Apr 22 2018 :  20:11:33  Show Profile  Reply
Actually, you should be able to just do:
// Undo All
ImageEnView1.Proc.UndoAt( ImageEnView1.Proc.UndoCount, True );


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