Color Methods |
The Color type exposes the following members.
| Name | Description | |
|---|---|---|
| Blend(Color, Color) |
Blends the blendColor onto the specified baseColor. Uses alpha component of blendColor
to detemine the blending factor.
| |
| Blend(Color, Color, Single) |
Blends the blendColor onto the specified baseColor. Ignores the alpha component and uses
the provided blend factor.
| |
| Distance |
Calculates the distance of the two colors in the RGB scale
| |
| Equals(Object) |
Tests if the specified object has the same value as this Color
(Overrides ValueTypeEquals(Object).) | |
| Equals(Color) |
Compares the specified color for equality
| |
| FromArgb(Int32) |
Creates a Color from a 32-bit ARGB value
| |
| FromArgb(Int32, Int32, Int32, Int32) |
Creates a color from 8-bit ARGB components
| |
| FromElementId |
Creates a new color from an Element ID value
| |
| FromGrayscale |
Creates a Color with a specified value for the Red, Green, and Blue components
| |
| FromRgb |
Creates a Color from a 24-bit RGB value
| |
| GetHashCode |
Gets the hash code for this Color
(Overrides ValueTypeGetHashCode.) | |
| Invert |
Inverts the RGB color values
| |
| Parse |
Converts a string into a new instance of a Color
| |
| ToArgb |
Converts this color to a 32-bit ARGB value.
| |
| ToCMYK |
Converts this RGB color to the CMYK colorspace.
| |
| ToElementId |
Converts this color to an Element ID value
| |
| ToHex |
Converts this color to a hex representation
| |
| ToHSB |
Converts this RGB color to the HSB colorspace.
| |
| ToHSL |
Converts this RGB color to the HSL colorspace.
| |
| ToString |
Converts this object to a string
(Overrides ValueTypeToString.) | |
| TryParse |
Converts the specified string to a color
|