Quote Originally Posted by Schmidt View Post
Not sure, what you mean... (can only guess, that you mean a certain Color-Tolerance)?

As it currrently is, he FloodFill-based algo has a single If condition (related to the Color-Matching):
If Pxl(X, Y) = Color ...
which compares the 32Bit Long-Value (including AlphaChannel-Byte) exactly.

If you want a higher "Color-Range-tolerance" on that comparison,
then replace the expression with a little boolean-returning SubRoutine like:
Function ColorMatchUnsharp(ByVal PxlArrColor&, ByVal CompareColor&, ByVal PercFactor As Double) As Boolean

...wherein you then split both Colors into their BGRA-Components,
comparing each channel separately (using a certain percentage-based interval).

HTH

Olaf
yes.your are right, I found that a lot of image processing uses opencv, how does vb6 do it?