• Hello and welcome to our new forums. We upgraded our forum sites to a more robust and modern system which we hope you will enjoy. Be sure to check out your profile by clicking the button on the top right and configure your preferences, signature, time zone, avatar, etc. as you wish. If you need help with using this new forum'ware try the help link on the bottom right.

    Click here to review your account now.

Question Is there any function or way to find out the region or points, filled by AForge.PointedMeanFloodFill class?


Mar 6, 2019
Programming Experience
I'm using AForge library in a project and I want to fill the region with a color, position will be pointed by the user using a mouse on a shapes in the Picture Box control and how to get all filled points in the region or colored points.
I checked the Aforge docs and the class properties Aforge link I could not find anything.
using below code we can do flood fill on shapes but I would like to know all the filled points or at least filled region-rectangle.
Aforge code to flood fill:
// create filter

PointedMeanFloodFill filter = new PointedMeanFloodFill( );

// configre the filter

filter.Tolerance = Color.FromArgb( 150, 92, 92 );

filter.StartingPoint = new IntPoint( 150, 100 );

// apply the filter

filter.ApplyInPlace( image );

Can I get the rect positions of the filled region or at least filled points? after the flood fill?
Top Bottom