構造体 Rgb565

16 bit color struct with 5 bits for R, 6 bits for G, and 5 bits for G [詳細]

すべてのメンバ一覧

Public メソッド

 Rgb565 (ushort bits)
 constructor taking ushort data
 Rgb565 (Rgba rgba)
 constructor taking a 32 bit color
Rgba ToRgba ()
 return the color as a 32 bit color
bool Equals (Rgb565 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== (Rgb565 c1, Rgb565 c2)
 equality operator
static bool operator!= (Rgb565 c1, Rgb565 c2)
 not equals operator

Public 変数

ushort Bits
 color data

説明

16 bit color struct with 5 bits for R, 6 bits for G, and 5 bits for G


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

Rgb565 ( ushort  bits)

constructor taking ushort data

引数:
bitsbits to initialize with
Rgb565 ( Rgba  rgba)

constructor taking a 32 bit color

引数:
rgbathe color to init with

メソッド

bool Equals ( Rgb565  c)

equality test

引数:
cthe color to compare this to
戻り値:
true if this == rgba, 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!= ( Rgb565  c1,
Rgb565  c2 
) [static]

not equals operator

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

equality operator

引数:
c1color 1
c2color 2
戻り値:
true if color 1 == color 2, false otherwise
Rgba ToRgba ( )

return the color as a 32 bit color

戻り値:
the color as a 32 bit color
override string ToString ( )

get the string representation of color value

戻り値:
the string representation of color value

変数

ushort Bits

color data