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

khorsandreza

Iran
26 Posts

Posted - Sep 10 2017 :  07:21:03  Show Profile  Reply
Hi All
I cut the image around using the [ImageEnView1] tool. But sometimes it's part of the background!
I need to remove the remaining parts from the eraser tool.
please help .
Thanks

Notice the attached image


w2m

USA
1990 Posts

Posted - Sep 10 2017 :  11:26:11  Show Profile  Reply
If the background is all the same color then try this:
var
  iRGB: TRGB;
begin
  ImageEnView.EnableAlphaChannel := True;
  iRGB := ImageEnView.IEBitmap.Pixels[0, ImageEnView.IEBitmap.Height - 1];
  ImageEnView.Proc.SetTransparentColors(iRGB, iRGB, 0);
  ImageEnView.IO.Params.BitsPerSample := 8;
  ImageEnView.IO.Params.SamplesPerPixel := 4;
  ImageEnView.Update;
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

39053 Posts

Posted - Sep 10 2017 :  19:33:15  Show Profile  Reply
Hi

If this is a green screen image then you really should be using the ChomaKey functionality:



You can try it at:

https://www.imageen.com/demos/#ImageEditing


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: