Export (0) Print
Expand All

Color Methods

The Color type exposes the following members.

  NameDescription
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 the current color.
Public method Equals(Object) Tests whether the specified object is a Color structure and is equivalent to the current color. (Overrides ValueType.Equals(Object).)
Public method Static member Equals(Color, Color) Tests whether two Color structures are identical.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
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 the current 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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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 ScRGB channels. (Overrides ValueType.ToString().)
Public method ToString(IFormatProvider) Creates a string representation of the color by using the ScRGB channels and the specified format provider.
Top

  NameDescription
Explicit interface implemetation Private method IFormattable.ToString Formats the value of the current instance using the specified format.
Top

Community Additions

ADD
Show:
© 2014 Microsoft