This documentation is archived and is not being maintained.

Color Methods

The Color type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Tests whether the specified object is a Color structure and is equivalent to this Color structure. (Overrides ValueType.Equals(Object).)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Supported by the .NET Compact Framework Supported by the XNA Framework FromArgb Overloaded. Creates a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.
Public method Static member FromKnownColor Creates a Color structure from the specified predefined color.
Public method Static member FromName Creates a Color structure from the specified name of a predefined color.
Public method Static member Supported by the .NET Compact Framework FromSysIcv Infrastructure. Gets a system-defined color.
Public method GetBrightness Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Returns a hash code for this Color structure. (Overrides ValueType.GetHashCode().)
Public method GetHue Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.
Public method GetSaturation Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToArgb Gets the 32-bit ARGB value of this Color structure.
Public method ToKnownColor Gets the KnownColor value of this Color structure.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Converts this Color structure to a human-readable string. (Overrides ValueType.ToString().)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().


In XNA Framework 3.0, this member is inherited from Object.ToString().
Top
Show: