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
 Reset Image Question

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
PaulAtMass Posted - Apr 16 2018 : 07:06:26
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 22 2018 : 20:11:33
Actually, you should be able to just do:
// Undo All
ImageEnView1.Proc.UndoAt( ImageEnView1.Proc.UndoCount, True );


Nigel
Xequte Software
www.imageen.com
w2m Posted - Apr 16 2018 : 09:21:16


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
klausdoege Posted - Apr 16 2018 : 08:58:51
Hi,
the easy way, you can use ImageEnView1.Proc.Undo.
Klaus


Klaus
www.klausdoege.de