Color Methods
.NET Framework 3.5
The Color type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds two Color structures. |
|
AreClose | Compares two Color structures for fuzzy equality. |
|
Clamp | Sets the ScRGB channels of the color to within the gamut of 0 to 1, if they are outside that range. |
|
Equals | Overloaded. Tests whether two Color structures are identical. |
|
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 | Creates a new Color structure by using the specified sRGB alpha channel and color channel values. |
|
FromAValues | Creates a new Color structure by using the specified alpha channel, color channel values, and color profile. |
|
FromRgb | Creates a new Color structure by using the specified sRGB color channel values. |
|
FromScRgb | Creates a new Color structure by using the specified ScRGB alpha channel and color channel values. |
|
FromValues | Creates a new Color structure by using the specified color channel values and color profile. |
|
GetHashCode | Gets a hash code for the current Color structure. (Overrides ValueType.GetHashCode().) |
|
GetNativeColorValues | Gets the color channel values of the color. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Multiply | Multiplies the alpha, red, blue, and green channels of the specified Color structure by the specified value. |
|
Subtract | Subtracts a Color structure from a Color structure. |
|
ToString | Overloaded. Creates a string representation of the color by using the ScRGB channels. |
| Name | Description | |
|---|---|---|
|
IFormattable.ToString | This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |