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 Static member Equals Overloaded. 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 Overloaded. Creates a string representation of the color by using the ScRGB channels.
Top

  NameDescription
Explicit interface implemetation Private method IFormattable.ToString This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft