点击或拖拽改变大小

Color 结构

[缺少 "T:CPF.Drawing.Color" 的 <summary> 文档]

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
[TypeConverterAttribute(typeof(ColorConverter))]
public struct Color : IFormattable, IEquatable<Color>

Color 类型公开以下成员。

属性
  名称说明
公共属性A
A
公共属性静态成员AliceBlue
Well-known color: AliceBlue
公共属性静态成员AntiqueWhite
Well-known color: AntiqueWhite
公共属性静态成员Aqua
Well-known color: Aqua
公共属性静态成员Aquamarine
Well-known color: Aquamarine
公共属性静态成员Azure
Well-known color: Azure
公共属性B
B
公共属性静态成员Beige
Well-known color: Beige
公共属性静态成员Bisque
Well-known color: Bisque
公共属性静态成员Black
Well-known color: Black
公共属性静态成员BlanchedAlmond
Well-known color: BlanchedAlmond
公共属性静态成员Blue
Well-known color: Blue
公共属性静态成员BlueViolet
Well-known color: BlueViolet
公共属性静态成员Brown
Well-known color: Brown
公共属性静态成员BurlyWood
Well-known color: BurlyWood
公共属性静态成员CadetBlue
Well-known color: CadetBlue
公共属性静态成员Chartreuse
Well-known color: Chartreuse
公共属性静态成员Chocolate
Well-known color: Chocolate
公共属性静态成员Coral
Well-known color: Coral
公共属性静态成员CornflowerBlue
Well-known color: CornflowerBlue
公共属性静态成员Cornsilk
Well-known color: Cornsilk
公共属性静态成员Crimson
Well-known color: Crimson
公共属性静态成员Cyan
Well-known color: Cyan
公共属性静态成员DarkBlue
Well-known color: DarkBlue
公共属性静态成员DarkCyan
Well-known color: DarkCyan
公共属性静态成员DarkGoldenrod
Well-known color: DarkGoldenrod
公共属性静态成员DarkGray
Well-known color: DarkGray
公共属性静态成员DarkGreen
Well-known color: DarkGreen
公共属性静态成员DarkKhaki
Well-known color: DarkKhaki
公共属性静态成员DarkMagenta
Well-known color: DarkMagenta
公共属性静态成员DarkOliveGreen
Well-known color: DarkOliveGreen
公共属性静态成员DarkOrange
Well-known color: DarkOrange
公共属性静态成员DarkOrchid
Well-known color: DarkOrchid
公共属性静态成员DarkRed
Well-known color: DarkRed
公共属性静态成员DarkSalmon
Well-known color: DarkSalmon
公共属性静态成员DarkSeaGreen
Well-known color: DarkSeaGreen
公共属性静态成员DarkSlateBlue
Well-known color: DarkSlateBlue
公共属性静态成员DarkSlateGray
Well-known color: DarkSlateGray
公共属性静态成员DarkTurquoise
Well-known color: DarkTurquoise
公共属性静态成员DarkViolet
Well-known color: DarkViolet
公共属性静态成员DeepPink
Well-known color: DeepPink
公共属性静态成员DeepSkyBlue
Well-known color: DeepSkyBlue
公共属性静态成员DimGray
Well-known color: DimGray
公共属性静态成员DodgerBlue
Well-known color: DodgerBlue
公共属性静态成员Firebrick
Well-known color: Firebrick
公共属性静态成员FloralWhite
Well-known color: FloralWhite
公共属性静态成员ForestGreen
Well-known color: ForestGreen
公共属性静态成员Fuchsia
Well-known color: Fuchsia
公共属性G
G
公共属性静态成员Gainsboro
Well-known color: Gainsboro
公共属性静态成员GhostWhite
Well-known color: GhostWhite
公共属性静态成员Gold
Well-known color: Gold
公共属性静态成员Goldenrod
Well-known color: Goldenrod
公共属性静态成员Gray
Well-known color: Gray
公共属性静态成员Green
Well-known color: Green
公共属性静态成员GreenYellow
Well-known color: GreenYellow
公共属性静态成员Honeydew
Well-known color: Honeydew
公共属性静态成员HotPink
Well-known color: HotPink
公共属性静态成员IndianRed
Well-known color: IndianRed
公共属性静态成员Indigo
Well-known color: Indigo
公共属性静态成员Ivory
Well-known color: Ivory
公共属性静态成员Khaki
Well-known color: Khaki
公共属性静态成员Lavender
Well-known color: Lavender
公共属性静态成员LavenderBlush
Well-known color: LavenderBlush
公共属性静态成员LawnGreen
Well-known color: LawnGreen
公共属性静态成员LemonChiffon
Well-known color: LemonChiffon
公共属性静态成员LightBlue
Well-known color: LightBlue
公共属性静态成员LightCoral
Well-known color: LightCoral
公共属性静态成员LightCyan
Well-known color: LightCyan
公共属性静态成员LightGoldenrodYellow
Well-known color: LightGoldenrodYellow
公共属性静态成员LightGray
Well-known color: LightGray
公共属性静态成员LightGreen
Well-known color: LightGreen
公共属性静态成员LightPink
Well-known color: LightPink
公共属性静态成员LightSalmon
Well-known color: LightSalmon
公共属性静态成员LightSeaGreen
Well-known color: LightSeaGreen
公共属性静态成员LightSkyBlue
Well-known color: LightSkyBlue
公共属性静态成员LightSlateGray
Well-known color: LightSlateGray
公共属性静态成员LightSteelBlue
Well-known color: LightSteelBlue
公共属性静态成员LightYellow
Well-known color: LightYellow
公共属性静态成员Lime
Well-known color: Lime
公共属性静态成员LimeGreen
Well-known color: LimeGreen
公共属性静态成员Linen
Well-known color: Linen
公共属性静态成员Magenta
Well-known color: Magenta
公共属性静态成员Maroon
Well-known color: Maroon
公共属性静态成员MediumAquamarine
Well-known color: MediumAquamarine
公共属性静态成员MediumBlue
Well-known color: MediumBlue
公共属性静态成员MediumOrchid
Well-known color: MediumOrchid
公共属性静态成员MediumPurple
Well-known color: MediumPurple
公共属性静态成员MediumSeaGreen
Well-known color: MediumSeaGreen
公共属性静态成员MediumSlateBlue
Well-known color: MediumSlateBlue
公共属性静态成员MediumSpringGreen
Well-known color: MediumSpringGreen
公共属性静态成员MediumTurquoise
Well-known color: MediumTurquoise
公共属性静态成员MediumVioletRed
Well-known color: MediumVioletRed
公共属性静态成员MidnightBlue
Well-known color: MidnightBlue
公共属性静态成员MintCream
Well-known color: MintCream
公共属性静态成员MistyRose
Well-known color: MistyRose
公共属性静态成员Moccasin
Well-known color: Moccasin
公共属性静态成员NavajoWhite
Well-known color: NavajoWhite
公共属性静态成员Navy
Well-known color: Navy
公共属性静态成员OldLace
Well-known color: OldLace
公共属性静态成员Olive
Well-known color: Olive
公共属性静态成员OliveDrab
Well-known color: OliveDrab
公共属性静态成员Orange
Well-known color: Orange
公共属性静态成员OrangeRed
Well-known color: OrangeRed
公共属性静态成员Orchid
Well-known color: Orchid
公共属性静态成员PaleGoldenrod
Well-known color: PaleGoldenrod
公共属性静态成员PaleGreen
Well-known color: PaleGreen
公共属性静态成员PaleTurquoise
Well-known color: PaleTurquoise
公共属性静态成员PaleVioletRed
Well-known color: PaleVioletRed
公共属性静态成员PapayaWhip
Well-known color: PapayaWhip
公共属性静态成员PeachPuff
Well-known color: PeachPuff
公共属性静态成员Peru
Well-known color: Peru
公共属性静态成员Pink
Well-known color: Pink
公共属性静态成员Plum
Well-known color: Plum
公共属性静态成员PowderBlue
Well-known color: PowderBlue
公共属性静态成员Purple
Well-known color: Purple
公共属性R
R
公共属性静态成员Red
Well-known color: Red
公共属性静态成员RosyBrown
Well-known color: RosyBrown
公共属性静态成员RoyalBlue
Well-known color: RoyalBlue
公共属性静态成员SaddleBrown
Well-known color: SaddleBrown
公共属性静态成员Salmon
Well-known color: Salmon
公共属性静态成员SandyBrown
Well-known color: SandyBrown
公共属性ScA
ScA
公共属性ScB
ScB
公共属性ScG
ScG
公共属性ScR
ScR
公共属性静态成员SeaGreen
Well-known color: SeaGreen
公共属性静态成员SeaShell
Well-known color: SeaShell
公共属性静态成员Sienna
Well-known color: Sienna
公共属性静态成员Silver
Well-known color: Silver
公共属性静态成员SkyBlue
Well-known color: SkyBlue
公共属性静态成员SlateBlue
Well-known color: SlateBlue
公共属性静态成员SlateGray
Well-known color: SlateGray
公共属性静态成员Snow
Well-known color: Snow
公共属性静态成员SpringGreen
Well-known color: SpringGreen
公共属性静态成员SteelBlue
Well-known color: SteelBlue
公共属性静态成员Tan
Well-known color: Tan
公共属性静态成员Teal
Well-known color: Teal
公共属性静态成员Thistle
Well-known color: Thistle
公共属性静态成员Tomato
Well-known color: Tomato
公共属性静态成员Transparent
透明
公共属性静态成员Turquoise
Well-known color: Turquoise
公共属性静态成员Violet
Well-known color: Violet
公共属性静态成员Wheat
Well-known color: Wheat
公共属性静态成员White
Well-known color: White
公共属性静态成员WhiteSmoke
Well-known color: WhiteSmoke
公共属性静态成员Yellow
Well-known color: Yellow
公共属性静态成员YellowGreen
Well-known color: YellowGreen
Top
方法
  名称说明
公共方法静态成员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
运算符
  名称说明
公共运算符静态成员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
字段
  名称说明
公共字段静态成员Empty
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法ToSKColor (由 Extension 定义。)
Top
参见