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
 I want "Punching Hole Remove" mothod

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
eujin1999 Posted - Apr 25 2013 : 19:19:11
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!
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 28 2013 : 18:50:26
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
w2m Posted - Apr 26 2013 : 08:17:09
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