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
 Fill at a pixel

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
Waheed Posted - Mar 04 2023 : 05:40:23
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 06 2023 : 15:49:21
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