This topic has not yet been rated - Rate this topic

Color Methods

The Color type exposes the following members.

  Name Description
Public method Static member Add Adds two Color structures.
Public method Static member AreClose Compares two Color structures for fuzzy equality.
Public method Clamp Sets the ScRGB channels of the color to within the gamut of 0 to 1, if they are outside that range.
Public method Equals(Color) Tests whether the specified Color structure is identical to this color.
Public method Equals(Object) Tests whether the specified object is a Color structure and is equivalent to this color. (Overrides ValueType.Equals(Object).)
Public method Static member Equals(Color, Color) Tests whether two Color structures are identical.
Public method Static member FromArgb Creates a new Color structure by using the specified sRGB alpha channel and color channel values.
Public method Static member FromAValues Creates a new Color structure by using the specified alpha channel, color channel values, and color profile.
Public method Static member FromRgb Creates a new Color structure by using the specified sRGB color channel values.
Public method Static member FromScRgb Creates a new Color structure by using the specified ScRGB alpha channel and color channel values.
Public method Static member FromValues Creates a new Color structure by using the specified color channel values and color profile.
Public method GetHashCode Gets a hash code for this Color structure. (Overrides ValueType.GetHashCode().)
Public method GetNativeColorValues Gets the color channel values of the color.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member Multiply Multiplies the alpha, red, blue, and green channels of the specified Color structure by the specified value.
Public method Static member Subtract Subtracts a Color structure from a Color structure.
Public method ToString() Creates a string representation of the color using the sRGB channels. (Overrides ValueType.ToString().)
Public method ToString(IFormatProvider) Creates a string representation of the color by using the sRGB channels and the specified format provider.
Top
  Name Description
Explicit interface implemetation Private method IFormattable.ToString Formats the value of the current instance using the specified format.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.