C# Class Sharpex2D.Rendering.Color

Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Equals() public méthode

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

Equals() public méthode

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

FromArgb() public static méthode

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.
Résultat Color

GetHashCode() public méthode

Gets the HashCode for the current Color.
public GetHashCode ( ) : int
Résultat int

Multiply() public static méthode

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

ToColor() public static méthode

Counterpart for ToString.
public static ToColor ( string stringColor ) : Color
stringColor string The ColorString.
Résultat Color

ToString() public méthode

Color Converted to String.
public ToString ( ) : string
Résultat string

operator() public static méthode

The * Operator.
public static operator ( ) : Color
Résultat Color

operator() public static méthode

The != Operator.
public static operator ( ) : bool
Résultat bool