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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Fill at a pixel
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


36 Posts

Posted - Mar 04 2023 :  05:40:23  Show Profile  Reply
I looked at the FillTool demo.
These are the lines in the demo that interest me:

  ImageEnView1.FillTool.Tolerance  := updTolerance.Position;
  ImageEnView1.FillTool.SampleSize := updSampleSize.Position;
  ImageEnView1.FillTool.MaxFilter  := chkMaxFilter.Checked;
  ImageEnView1.FillTool.ColorFillValue := btnFillColor.SelectedColor;
  ImageEnView1.MouseInteractGeneral := [ miColorFill ];

I want to imitate the demo programmatically to do the following:
1. Select a region of an image
2. Fill (replace) with a color at a specific pixel in the region similar to using the demo when I click on a pixel in the image.

My reasoning is to do it in batch to many images.

3 Monitors
Windows 10
Delphi 6,2007 and 10.2
ImageEn v.11.4.0


38060 Posts

Posted - Mar 06 2023 :  15:49:21  Show Profile  Reply
Hi Waheed

Internally the fill tool is just using this method:

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: