C# Class ARCed.Core.ColorHandler

Handle conversions between RGB and HSV color spaces.
ファイルを表示 Open project: borisblizzard/arcreator Class Usage Examples

Public Methods

Method Description
HSVtoColor ( HSV hsv ) : Color

Converts a HSV color to a System.Drawing.Color

HSVtoColor ( int a, int h, int s, int v ) : Color

Converts a HSV color values to a System.Drawing.Color.

HSVtoRGB ( HSV hsv ) : ARGB

Converts a HSV color values to an RGB color

HSVtoRGB ( int a, int h, int s, int v ) : ARGB

Converts a HSV color values to an RGB color

RGBtoHSV ( ARGB argb ) : HSV

Converts an ARGB color to a HSV color.

Method Details

HSVtoColor() public static method

Converts a HSV color to a System.Drawing.Color
public static HSVtoColor ( HSV hsv ) : Color
hsv HSV HSV color to convert
return Color

HSVtoColor() public static method

Converts a HSV color values to a System.Drawing.Color.
public static HSVtoColor ( int a, int h, int s, int v ) : Color
a int Alpha value
h int Hue value
s int Saturation value
v int Value value
return Color

HSVtoRGB() public static method

Converts a HSV color values to an RGB color
public static HSVtoRGB ( HSV hsv ) : ARGB
hsv HSV HSV color to convert
return ARGB

HSVtoRGB() public static method

Converts a HSV color values to an RGB color
public static HSVtoRGB ( int a, int h, int s, int v ) : ARGB
a int Alpha value
h int Hue value
s int Saturation value
v int Value value
return ARGB

RGBtoHSV() public static method

Converts an ARGB color to a HSV color.
public static RGBtoHSV ( ARGB argb ) : HSV
argb ARGB ARGB color to convert
return HSV