構造体 Rgba

32 bit color struct, with 8 bits per channel [詳細]

すべてのメンバ一覧

Public メソッド

 Rgba (int r, int g, int b, int a)
 constructor taking 4 integers
 Rgba (Vector4 v)
 constructor taking a Vector4
Vector4 ToVector4 ()
 return the color as a Vector4
bool Equals (Rgba c)
 equality test
override bool Equals (Object o)
 equality test
override string ToString ()
 get the string representation of color value
override int GetHashCode ()
 gets the hash code for this

Static Public メソッド

static bool operator== (Rgba c1, Rgba c2)
 equality operator
static bool operator!= (Rgba c1, Rgba c2)
 not equals operator

Public 変数

byte R
 red
byte G
 green
byte B
 blue
byte A
 alpha

説明

32 bit color struct, with 8 bits per channel


コンストラクタとデストラクタ

Rgba ( int  r,
int  g,
int  b,
int  a 
)

constructor taking 4 integers

引数:
rred
ggreen
bblue
aalpha
Rgba ( Vector4  v)

constructor taking a Vector4

引数:
vthe vector to init with

メソッド

bool Equals ( Rgba  c)

equality test

引数:
cthe color to compare this to
戻り値:
true if this == c, false otherwise
override bool Equals ( Object  o)

equality test

引数:
othe object to compare this to
戻り値:
true if this == o, false otherwise
override int GetHashCode ( )

gets the hash code for this

戻り値:
integer hash code
static bool operator!= ( Rgba  c1,
Rgba  c2 
) [static]

not equals operator

引数:
c1color 1
c2color 2
戻り値:
true if c 1 != c 2, false otherwise
static bool operator== ( Rgba  c1,
Rgba  c2 
) [static]

equality operator

引数:
c1color 1
c2color 2
戻り値:
true if color 1 == color 2, false otherwise
override string ToString ( )

get the string representation of color value

戻り値:
the string representation of color value
Vector4 ToVector4 ( )

return the color as a Vector4

戻り値:
the color as a Vector4

変数

byte A

alpha

byte B

blue

byte G

green

byte R

red