C# Class MonoDroid.ColorPickers.ColorUtils

Exibir arquivo Open project: Cheesebaron/MonoDroid.ColorPickers

Public Methods

Method 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 method

public static ColorFromHSV ( HSV hsv, int alpha = 255 ) : Color
hsv HSV
alpha int
return Color

ColorFromHSV() public static method

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
return Color

ColorToHSV() public static method

public static ColorToHSV ( Color color ) : HSV
color Color
return HSV

ColorToHSV() public static method

public static ColorToHSV ( int r, int g, int b, float h ) : HSV
r int
g int
b int
h float
return HSV