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 |
名称 | 说明 | |
---|---|---|
ConvertTo |
类型转换
(由 ObjectExtenstions 定义。) | |
Delay |
延迟操作
(由 ObjectExtenstions 定义。) | |
Equal |
对象是否相等
(由 ObjectExtenstions 定义。) | |
GetCreationCode | (由 ObjectExtenstions 定义。) | |
GetPropretyValue |
获取对象属性值
(由 ObjectExtenstions 定义。) | |
GetValue |
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。) | |
Invoke |
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。) | |
SetPropretyValue |
设置属性值
(由 ObjectExtenstions 定义。) | |
SetValue |
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。) | |
ToSKColor | (由 Extension 定义。) |