点击或拖拽改变大小

Color 方法

Color 类型公开以下成员。

方法
  名称说明
公共方法静态成员Add
Addition method - Adds each channel of the second color to each channel of the first and returns the result
公共方法静态成员AreClose
Compares two colors for fuzzy equality. This function helps compensate for the fact that float values can acquire error when operated upon
公共方法Clamp
Clamp - the color channels to the gamut [0..1]. If a channel is out of gamut, it will be set to 1, which represents full saturation. todo: [....] up context values if they exist
公共方法Equals(Object)
Compares two colors for exact equality. Note that float values can acquire error when operated upon, such that an exact comparison between two vEquals(color);alues which are logically equal may fail. see cref="AreClose" for a "fuzzy" version of this comparison.
(重写 ValueTypeEquals(Object).)
公共方法Equals(Color)
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" for a "fuzzy" version of this comparison.
公共方法静态成员Equals(Color, Color)
Equality method for two colors - return true of colors are equal, otherwise returns false
公共方法静态成员FromArgb
Color - sRgb legacy interface, assumes Rgb values are sRgb, alpha channel is linear 1.0 gamma
公共方法静态成员FromRgb
Color - sRgb legacy interface, assumes Rgb values are sRgb
公共方法静态成员FromRgba
公共方法静态成员FromScRgb
FromScRgb
公共方法GetHashCode
GetHashCode
(重写 ValueTypeGetHashCode.)
公共方法GetType (继承自 Object。)
公共方法静态成员Multiply
乘法-每个通道的颜色乘以一个系数,并返回结果
公共方法静态成员Parse
Parses a color string. #ffffff、r,g,b、r,g,b,a
公共方法静态成员Subtract
Subtract method - subtracts each channel of the second color from each channel of the first and returns the result
公共方法ToString
Creates a string representation of this object based on the current culture.
(重写 ValueTypeToString.)
公共方法ToString(IFormatProvider)
Creates a string representation of this object based on the IFormatProvider passed in. If the provider is null, the CurrentCulture is used.
公共方法静态成员TryParse
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法ToSKColor (由 Extension 定义。)
Top
参见