This documentation is archived and is not being maintained.
Color Methods
Visual Studio 2010
The Color type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals | Tests whether the specified object is a Color structure and is equivalent to this Color structure. (Overrides ValueType::Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FromArgb(Int32) | Creates a Color structure from a 32-bit ARGB value. |
|
FromArgb(Int32, Color) | Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits. |
|
FromArgb(Int32, Int32, Int32) | Creates a Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits. |
|
FromArgb(Int32, Int32, Int32, Int32) | Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits. |
|
FromKnownColor | Creates a Color structure from the specified predefined color. |
|
FromName | Creates a Color structure from the specified name of a predefined color. |
|
GetBrightness | Gets the hue-saturation-brightness (HSB) brightness value for this Color structure. |
|
GetHashCode | Returns a hash code for this Color structure. (Overrides ValueType::GetHashCode().) |
|
GetHue | Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure. |
|
GetSaturation | Gets the hue-saturation-brightness (HSB) saturation value for this Color structure. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToArgb | Gets the 32-bit ARGB value of this Color structure. |
|
ToKnownColor | Gets the KnownColor value of this Color structure. |
|
ToString |
Converts this Color structure to a human-readable string. (Overrides ValueType::ToString().) In XNA Framework 3.0, this member is inherited from Object::ToString(). |
Show: