C# 클래스 Sharpex2D.Rendering.Color

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
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