Click or drag to resize
Color Methods

The Color type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAreClose
Compares two Color structures for fuzzy equality.
Public methodClamp
Sets the ScRGB channels of the color to within the gamut of 0 to 1, if they are outside that range.
Public methodEquals(Object)
Tests whether the specified object is a Color structure and is equivalent to the current color.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Color)
Tests whether the specified Color structure is identical to the current color.
Public methodStatic memberEquals(Color, Color)
Tests whether two Color structures are identical.
Public methodStatic memberFromArgb
Creates a new Color structure by using the specified sRGB alpha channel and color channel values.
Public methodStatic memberFromAValues
Creates a new Color structure by using the specified alpha channel, color channel values, and color profile.
Public methodStatic memberFromRgb
Creates a new Color structure by using the specified sRGB color channel values.
Public methodStatic memberFromScRgb
Creates a new Color structure by using the specified ScRGB alpha channel and color channel values.
Public methodStatic memberFromValues
Creates a new Color structure by using the specified color channel values and color profile.
Public methodStatic memberGetComponentsFromPixel
Public methodGetHashCode
Gets a hash code for the current Color structure.
(Overrides ValueTypeGetHashCode.)
Public methodGetNativeColorValues
Gets the color channel values of the color.
Public methodStatic memberMultiply
Multiplies the alpha, red, blue, and green channels of the specified Color structure by the specified value.
Public methodToString
Creates a string representation of the color using the ScRGB channels.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Creates a string representation of the color by using the ScRGB channels and the specified format provider.
Top
Extension Methods
See Also