C# Class Microsoft.Windows.Controls.Core.Utilities.ColorUtilities

Afficher le fichier Open project: Invenietis/ck-certified

Méthodes publiques

Свойство Type Description
KnownColors Color>.Dictionary

Méthodes publiques

Méthode Description
ConvertHsvToRgb ( double h, double s, double v ) : Color

Converts an HSV color to an RGB color.

ConvertRgbToHsv ( int r, int b, int g ) : Microsoft.Windows.Controls.Primitives.HsvColor

Converts an RGB color to an HSV color.

GenerateHsvSpectrum ( ) : List

Generates a list of colors with hues ranging from 0 360 and a saturation and value of 1.

GetColorName ( this color ) : string

Private Methods

Méthode Description
GetKnownColors ( ) : Color>.Dictionary

Method Details

ConvertHsvToRgb() public static méthode

Converts an HSV color to an RGB color.
public static ConvertHsvToRgb ( double h, double s, double v ) : Color
h double
s double
v double
Résultat Color

ConvertRgbToHsv() public static méthode

Converts an RGB color to an HSV color.
public static ConvertRgbToHsv ( int r, int b, int g ) : Microsoft.Windows.Controls.Primitives.HsvColor
r int
b int
g int
Résultat Microsoft.Windows.Controls.Primitives.HsvColor

GenerateHsvSpectrum() public static méthode

Generates a list of colors with hues ranging from 0 360 and a saturation and value of 1.
public static GenerateHsvSpectrum ( ) : List
Résultat List

GetColorName() public static méthode

public static GetColorName ( this color ) : string
color this
Résultat string

Property Details

KnownColors public_oe static_oe property

public static Dictionary KnownColors
Résultat Color>.Dictionary