C# Class MonoDroid.ColorPickers.ColorUtils

Afficher le fichier Open project: Cheesebaron/MonoDroid.ColorPickers

Méthodes publiques

Méthode Description
ColorFromHSV ( HSV hsv, int alpha = 255 ) : Color
ColorFromHSV ( float hue, float saturation, float value, int alpha = 255 ) : Color

From http://stackoverflow.com/questions/10289279/converting-hsv-circle-code-from-delphi-to-c-sharp

ColorToHSV ( Color color ) : HSV
ColorToHSV ( int r, int g, int b, float h ) : HSV

Method Details

ColorFromHSV() public static méthode

public static ColorFromHSV ( HSV hsv, int alpha = 255 ) : Color
hsv HSV
alpha int
Résultat Color

ColorFromHSV() public static méthode

From http://stackoverflow.com/questions/10289279/converting-hsv-circle-code-from-delphi-to-c-sharp
public static ColorFromHSV ( float hue, float saturation, float value, int alpha = 255 ) : Color
hue float
saturation float
value float
alpha int
Résultat Color

ColorToHSV() public static méthode

public static ColorToHSV ( Color color ) : HSV
color Color
Résultat HSV

ColorToHSV() public static méthode

public static ColorToHSV ( int r, int g, int b, float h ) : HSV
r int
g int
b int
h float
Résultat HSV