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
 Fill at a pixel
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Waheed

Kuwait
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

xequte

38607 Posts

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

Internally the fill tool is just using this method:

https://www.imageen.com/help/TImageEnProc.CastColor.html

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