点击或拖拽改变大小

ColorAreClose 方法

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
语法
C#
public static bool AreClose(
	Color color1,
	Color color2
)

参数

color1
类型:CPF.DrawingColor
The first color to compare
color2
类型:CPF.DrawingColor
The second color to compare

返回值

类型:Boolean
Whether or not the two colors are equal
参见