Color Methods

 

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAdd(Color, Color)

Adds two Color structures.

System_CAPS_pubmethodSystem_CAPS_staticAreClose(Color, Color)

Compares two Color structures for fuzzy equality.

System_CAPS_pubmethodClamp()

Sets the ScRGB channels of the color to within the gamut of 0 to 1, if they are outside that range.

System_CAPS_pubmethodEquals(Color)

Tests whether the specified Color structure is identical to this color.

System_CAPS_pubmethodSystem_CAPS_staticEquals(Color, Color)

Tests whether two Color structures are identical.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodSystem_CAPS_staticFromArgb(Byte, Byte, Byte, Byte)

Creates a new Color structure by using the specified sRGB alpha channel and color channel values.

System_CAPS_pubmethodSystem_CAPS_staticFromAValues(Single, Single[], Uri)

Creates a new Color structure by using the specified alpha channel, color channel values, and color profile.

System_CAPS_pubmethodSystem_CAPS_staticFromRgb(Byte, Byte, Byte)

Creates a new Color structure by using the specified sRGB color channel values.

System_CAPS_pubmethodSystem_CAPS_staticFromScRgb(Single, Single, Single, Single)

Creates a new Color structure by using the specified ScRGB alpha channel and color channel values.

System_CAPS_pubmethodSystem_CAPS_staticFromValues(Single[], Uri)

Creates a new Color structure by using the specified color channel values and color profile.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetNativeColorValues()

Gets the color channel values of the color.

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodSystem_CAPS_staticMultiply(Color, Single)

Multiplies the alpha, red, blue, and green channels of the specified Color structure by the specified value.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(Color, Color)

Subtracts a Color structure from a Color structure.

System_CAPS_pubmethodToString()

Creates a string representation of the color using the sRGB channels. (Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(IFormatProvider)

Creates a string representation of the color by using the sRGB channels and the specified format provider.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIFormattable.ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.

Return to top
Show: