点击或拖拽改变大小

Color 运算符与类型转换

Color 类型公开以下成员。

运算符
  名称说明
公共运算符静态成员Addition
Addition operator - Adds each channel of the second color to each channel of the first and returns the result
公共运算符静态成员Equality
IsEqual operator - Compares two colors for exact equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. see cref="AreClose".
公共运算符静态成员(String to Color)
Parses a color string. #ffffff、r,g,b、r,g,b,a
公共运算符静态成员(HtmlColor to Color)
公共运算符静态成员Inequality
!=
公共运算符静态成员Multiply
Multiplication operator - Multiplies each channel of the color by a coefficient and returns the result
公共运算符静态成员Subtraction
Subtract operator - substracts each channel of the second color from each channel of the first and returns the result
Top
参见