Click or drag to resize

Color Methods

The Color type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBlend(Color, Color)
Blends the blendColor onto the specified baseColor. Uses alpha component of blendColor to detemine the blending factor.
Public methodStatic memberBlend(Color, Color, Single)
Blends the blendColor onto the specified baseColor. Ignores the alpha component and uses the provided blend factor.
Public methodStatic memberDistance
Calculates the distance of the two colors in the RGB scale
Public methodEquals(Object)
Tests if the specified object has the same value as this Color
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Color)
Compares the specified color for equality
Public methodStatic memberFromArgb(Int32)
Creates a Color from a 32-bit ARGB value
Public methodStatic memberFromArgb(Int32, Int32, Int32, Int32)
Creates a color from 8-bit ARGB components
Public methodStatic memberFromElementId
Creates a new color from an Element ID value
Public methodStatic memberFromGrayscale
Creates a Color with a specified value for the Red, Green, and Blue components
Public methodStatic memberFromRgb
Creates a Color from a 24-bit RGB value
Public methodGetHashCode
Gets the hash code for this Color
(Overrides ValueTypeGetHashCode.)
Public methodInvert
Inverts the RGB color values
Public methodStatic memberParse
Converts a string into a new instance of a Color
Public methodToArgb
Converts this color to a 32-bit ARGB value.
Public methodToCMYK
Converts this RGB color to the CMYK colorspace.
Public methodToElementId
Converts this color to an Element ID value
Public methodToHex
Converts this color to a hex representation
Public methodToHSB
Converts this RGB color to the HSB colorspace.
Public methodToHSL
Converts this RGB color to the HSL colorspace.
Public methodToString
Converts this object to a string
(Overrides ValueTypeToString.)
Public methodStatic memberTryParse
Converts the specified string to a color
Top
See Also