Color.AreClose Method (Color, Color)
Compares two Color structures for fuzzy equality.
Assembly: PresentationCore (in PresentationCore.dll)
The first color to compare.
The second color to compare.
Return ValueType: System.Boolean
true if color1 and color2 are nearly identical; otherwise, false.
This equality method compensates for the fact that floating-point values can acquire a small amount of error when operated upon.
Available since 3.0