Click or drag to resize
ColorUtilities Class
Static helper class related to color.
Inheritance Hierarchy
SystemObject
  Telerik.Windows.Diagrams.CoreColorUtilities

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Controls.Diagrams (in Telerik.Windows.Controls.Diagrams.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public static class ColorUtilities

The ColorUtilities type exposes the following members.

Methods
  NameDescription
Public methodStatic memberByteArrayToHexString
Converts the given byte array to a color in the format #AARRGGBB.
Public methodStatic memberColorFromString
Colors from string.
Public methodStatic memberColorToString
Converts the specified color to a format #AARRGGBB. Use the ColorToString(Color) to convert a string back to a color.
Public methodStatic memberFromAngle
Creates a color from an angle.
Public methodStatic memberFromArgb
Returns brush from ARGB values.
Public methodStatic memberFromHsl
Returns a color based on its HSL value.
Public methodStatic memberHexStringFromSolidColor
Public methodStatic memberHexStringToByteArray
Converts the #AARRGGBB string color to a byte array.
Public methodStatic memberMultiply
Multiplies/scales the specified color.
Public methodStatic memberParse(Int32)
Parses the specified value and converts it to a color.
Public methodStatic memberParse(String)
Parses the specified color string (e.g. '#FF4B4578').
Public methodStatic memberParseToBrush
Parses to brush.
Public methodStatic memberRgbToHsl
Given a Color (RGB Struct) in range of 0-255 Return H,S,L in the range [0,1].
Public methodStatic memberStringToColor
Converts the specified string value to Color.
Public methodStatic memberSum
Adds the two given colors.
Public methodStatic memberToValue
Returns the unsigned integer value of the color.
Top
Fields
  NameDescription
Public fieldStatic memberNamedColors
Know color names taken over from .Net.
Public fieldStatic memberNamedColorsRgb
The ARGB values corresponding to the NamedColors.
Top
Properties
  NameDescription
Public propertyStatic memberRandomBlues
Gets a random shade of blue.
Public propertyStatic memberRandomBrush
Gets the random brush where the color is picked from the known colors.
Top
See Also