C# Класс Sharpex2D.Rendering.Color

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Color() публичный Метод

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.
Результат System

Equals() публичный Метод

Determines, if this Object is equal with another.
public Equals ( Color color ) : bool
color Color The Color.
Результат bool

Equals() публичный Метод

Determines, if this Object is equal with another.
public Equals ( object obj ) : bool
obj object The Object.
Результат bool

FromArgb() публичный статический Метод

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.
Результат Color

GetHashCode() публичный Метод

Gets the HashCode for the current Color.
public GetHashCode ( ) : int
Результат int

Multiply() публичный статический Метод

Multiplies the specified color.
public static Multiply ( Color value, float scale ) : Color
value Color The value.
scale float The scale.
Результат Color

ToColor() публичный статический Метод

Counterpart for ToString.
public static ToColor ( string stringColor ) : Color
stringColor string The ColorString.
Результат Color

ToString() публичный Метод

Color Converted to String.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

The * Operator.
public static operator ( ) : Color
Результат Color

operator() публичный статический Метод

The != Operator.
public static operator ( ) : bool
Результат bool