C# Class Ultima.Hues

Mostrar archivo Open project: polserver/poltools Class Usage Examples

Public Methods

Method Description
ApplyTo ( Bitmap bmp, short Colors, bool onlyHueGrayPixels ) : void
ColorToHue ( Color c ) : short

Converts RGB value to Huecolor

GetHue ( int index ) : Hue

Returns Hue

HueToColor ( short hue ) : Color

Converts Huecolor to RGBColor

HueToColorB ( short hue ) : int
HueToColorG ( short hue ) : int
HueToColorR ( short hue ) : int
Initialize ( ) : void

Reads hues.mul and fills List

Save ( string path ) : void

Private Methods

Method Description
Hues ( ) : System

Method Details

ApplyTo() public static method

public static ApplyTo ( Bitmap bmp, short Colors, bool onlyHueGrayPixels ) : void
bmp System.Drawing.Bitmap
Colors short
onlyHueGrayPixels bool
return void

ColorToHue() public static method

Converts RGB value to Huecolor
public static ColorToHue ( Color c ) : short
c Color
return short

GetHue() public static method

Returns Hue
public static GetHue ( int index ) : Hue
index int
return Hue

HueToColor() public static method

Converts Huecolor to RGBColor
public static HueToColor ( short hue ) : Color
hue short
return Color

HueToColorB() public static method

public static HueToColorB ( short hue ) : int
hue short
return int

HueToColorG() public static method

public static HueToColorG ( short hue ) : int
hue short
return int

HueToColorR() public static method

public static HueToColorR ( short hue ) : int
hue short
return int

Initialize() public static method

Reads hues.mul and fills List
public static Initialize ( ) : void
return void

Save() public static method

public static Save ( string path ) : void
path string
return void