itom 1.3.0
|
Public Types | |
enum | RGBSelectionFlags { RGBA_B = 0, RGBA_G = 1, RGBA_R = 2, RGBA_A = 3, RGBA_Y = 4, RGBA_RGB = 5 } |
Public Member Functions | |
Rgba32 () | |
Rgba32 (const uint8 &a, const uint8 &r, const uint8 &g, const uint8 &b) | |
Rgba32 (const uint8 gray) | |
Rgba32 (const Rgba32 &rhs) | |
Rgba32 & | operator+= (const Rgba32 &rhs) |
Rgba32 & | operator= (const Rgba32 &rhs) |
Rgba32 & | operator= (const uint32 &rhs) |
Rgba32 & | operator-= (const Rgba32 &rhs) |
Rgba32 & | operator*= (const Rgba32 &rhs) |
Rgba32 & | operator/= (const Rgba32 &rhs) |
Rgba32 | operator+ (const Rgba32 &second) const |
Rgba32 | operator- (const Rgba32 &second) const |
Rgba32 | operator* (const Rgba32 &second) const |
Rgba32 | operator/ (const Rgba32 &second) const |
bool | operator== (const Rgba32 &rhs) const |
bool | operator!= (const Rgba32 &rhs) const |
float32 | gray () const |
uint8 & | alpha () |
uint8 & | red () |
uint8 & | green () |
uint8 & | blue () |
uint8 | alpha () const |
uint8 | red () const |
uint8 | green () const |
uint8 | blue () const |
uint32 & | argb () |
uint32 | argb () const |
uint32 * | u32ptr () |
uint8 * | u8ptr () |
Static Public Member Functions | |
static Rgba32 | zeros () |
static Rgba32 | black () |
static Rgba32 | fromUnsignedLong (const uint32 val) |
ito::Rgba32::Rgba32 | ( | ) | [inline] |
< Constructor for basic values
ito::Rgba32::Rgba32 | ( | const uint8 & | a, |
const uint8 & | r, | ||
const uint8 & | g, | ||
const uint8 & | b | ||
) | [inline] |
< Constructor for ARGB by 4 channels
ito::Rgba32::Rgba32 | ( | const uint8 | gray | ) | [inline, explicit] |
< Constructor which will set color channels to gray uint8 and alpha to 255
ito::Rgba32::Rgba32 | ( | const Rgba32 & | rhs | ) | [inline] |
< Copy-Constructor for lvalues
uint8& ito::Rgba32::alpha | ( | ) | [inline] |
< Return the gray-value of the current RGB-Value
uint8 ito::Rgba32::alpha | ( | ) | const [inline] |
< Access to blue-Channel
uint32& ito::Rgba32::argb | ( | ) | [inline] |
< Read out blue-Channel
uint32 ito::Rgba32::argb | ( | ) | const [inline] |
< Access to argb-Channel
uint8& ito::Rgba32::blue | ( | ) | [inline] |
< Access to green-Channel
uint8 ito::Rgba32::blue | ( | ) | const [inline] |
< Read out green-Channel
uint8& ito::Rgba32::green | ( | ) | [inline] |
< Access to red-Channel
uint8 ito::Rgba32::green | ( | ) | const [inline] |
< Read out red-Channel
bool ito::Rgba32::operator!= | ( | const Rgba32 & | rhs | ) | const [inline] |
< Implementation of != operator comparing each element including alpha channel, true if one is different
< Implementation of * operator using *= operator
< Implementation of *= operator with overflow handling and normalisation
< Implementation of + operator using += operator
< Implementation of += operator with overflow handling
< Implementation of - operator using -= operator
< Implementation of -= operator with overflow handling
< Implementation of * operator using *= operator
< Implementation of /= operator with overflow handling and normalisation
Rgba32& ito::Rgba32::operator= | ( | const uint32 & | rhs | ) | [inline] |
< Implementation of = for uint32 by direct copy
Reimplemented in ito::RGBChannel< _COLOR >.
bool ito::Rgba32::operator== | ( | const Rgba32 & | rhs | ) | const [inline] |
< Implementation of == operator comparing each element including alpha channel, true if all are equal
uint8& ito::Rgba32::red | ( | ) | [inline] |
< Access to alpha-Channel
uint8 ito::Rgba32::red | ( | ) | const [inline] |
< Read out alpha-Channel
uint32* ito::Rgba32::u32ptr | ( | ) | [inline] |
< Read out argb-Channel