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
 I want "Punching Hole Remove" mothod
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

eujin1999

Korea
1 Posts

Posted - Apr 25 2013 :  19:19:11  Show Profile  Reply
I use ImageEn 4.3.0.
I searched "punching hole remove mothod" in Google but i can't find.
So
I need your help on this way.

thanks!

w2m

USA
1990 Posts

Posted - Apr 26 2013 :  08:17:09  Show Profile  Reply
There are no methods that do this automatically for you in ImageEn, but you can remove "punch holes by" selecting the area around the hole, cutting the selection, then filling the selection with the paper color:
procedure TForm1.RemoveSelection1Click(Sender: TObject);
{ Remove selection and fill with paper color. }
var
  iColor: TColor; { Paper color around the hole }
begin
  if ImageEnView.Selected then
  begin
    ImageEnView.Proc.SaveUndoCaptioned('Remove Selected ' + IntToStr(ImageEnView.Proc.UndoCount));
    Undo1.Hint := 'Remove Selected ' + IntToStr(ImageEnView.Proc.UndoCount + 1);
    ImageEnView.Proc.ClearAllRedo;
    { Cut selection }
    ImageEnView.Proc.SelCutToClip(True);
    { Fill the selection with the paper color }
    iColor := clWhite;
    ImageEnView.Proc.Fill(iColor);
    ImageEnView.Update;
   end;
 end
 else
    MessageBox(0, 'Please select an area of the image to remove.', 'No Selection', MB_ICONWARNING or MB_OK);
  end;
end;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

xequte

39053 Posts

Posted - Apr 28 2013 :  18:50:26  Show Profile  Reply
Hi

You can also use the patching method in the IEVision plug-in:

http://www.imageen.com/info/index.html#IEVision



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