Compares two colors for fuzzy equality. This function
helps compensate for the fact that float values can
acquire error when operated upon
命名空间:
CPF.Drawing
程序集:
CPF (在 CPF.dll 中) 版本:0.8.8.5
语法 public static bool AreClose(
Color color1,
Color color2
)
参数
- color1
- 类型:CPF.DrawingColor
The first color to compare - color2
- 类型:CPF.DrawingColor
The second color to compare
返回值
类型:
BooleanWhether or not the two colors are equal
参见