C# Class Sharpex2D.Rendering.Color

Mostra file Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Color ( int r, int g, int b, int a ) : System

Initializes a new Color.

Equals ( Color color ) : bool

Determines, if this Object is equal with another.

Equals ( object obj ) : bool

Determines, if this Object is equal with another.

FromArgb ( int a, int r, int g, int b ) : Color

Generates a Color from the given Values.

GetHashCode ( ) : int

Gets the HashCode for the current Color.

Multiply ( Color value, float scale ) : Color

Multiplies the specified color.

ToColor ( string stringColor ) : Color

Counterpart for ToString.

ToString ( ) : string

Color Converted to String.

operator ( ) : Color

The * Operator.

operator ( ) : bool

The != Operator.

Method Details

Color() public method

Initializes a new Color.
public Color ( int r, int g, int b, int a ) : System
r int The RedValue.
g int The GreenValue.
b int The BlueValue.
a int The AlphaValue.
return System

Equals() public method

Determines, if this Object is equal with another.
public Equals ( Color color ) : bool
color Color The Color.
return bool

Equals() public method

Determines, if this Object is equal with another.
public Equals ( object obj ) : bool
obj object The Object.
return bool

FromArgb() public static method

Generates a Color from the given Values.
public static FromArgb ( int a, int r, int g, int b ) : Color
a int The AlphaValue.
r int The RedValue.
g int The GreenValue.
b int The BlueValue.
return Color

GetHashCode() public method

Gets the HashCode for the current Color.
public GetHashCode ( ) : int
return int

Multiply() public static method

Multiplies the specified color.
public static Multiply ( Color value, float scale ) : Color
value Color The value.
scale float The scale.
return Color

ToColor() public static method

Counterpart for ToString.
public static ToColor ( string stringColor ) : Color
stringColor string The ColorString.
return Color

ToString() public method

Color Converted to String.
public ToString ( ) : string
return string

operator() public static method

The * Operator.
public static operator ( ) : Color
return Color

operator() public static method

The != Operator.
public static operator ( ) : bool
return bool