Color Methods

 

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

NameDescription
System_CAPS_pubmethodEquals(Object)

Tests whether the specified object is a Color structure and is equivalent to this Color structure.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticFromArgb(Int32)

Creates a Color structure from a 32-bit ARGB value.

System_CAPS_pubmethodSystem_CAPS_staticFromArgb(Int32, Color)

Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits.

System_CAPS_pubmethodSystem_CAPS_staticFromArgb(Int32, Int32, Int32)

Creates a Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.

System_CAPS_pubmethodSystem_CAPS_staticFromArgb(Int32, Int32, Int32, Int32)

Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

System_CAPS_pubmethodSystem_CAPS_staticFromKnownColor(KnownColor)

Creates a Color structure from the specified predefined color.

System_CAPS_pubmethodSystem_CAPS_staticFromName(String)

Creates a Color structure from the specified name of a predefined color.

System_CAPS_pubmethodGetBrightness()

Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.

System_CAPS_pubmethodGetHashCode()

Returns a hash code for this Color structure.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetHue()

Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.

System_CAPS_pubmethodGetSaturation()

Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToArgb()

Gets the 32-bit ARGB value of this Color structure.

System_CAPS_pubmethodToKnownColor()

Gets the KnownColor value of this Color structure.

System_CAPS_pubmethodToString()

Converts this Color structure to a human-readable string.(Overrides ValueType.ToString().)

Return to top
Show: