Today I am trying to check if one color is similar to another in CSharp from BitMap. This is code, what I am using:
Color blah = screenshot.GetPixel(x, y);
if (blah == Color.Red) {
...
The problem is, that I never get true
, because the color has a little bit different shade. Is there any way to compare this colors with some tolerance?
Thanks!