45 #include <visp3/core/vpConfig.h>
46 #include <visp3/core/vpColVector.h>
87 : R(r), G(g), B(b), A(a)
97 VP_EXPLICIT
inline vpRGBa(
unsigned char v) : R(v), G(v), B(v), A(v) { }
106 VP_EXPLICIT
inline vpRGBa(
unsigned int v) : R(v), G(v), B(v), A(v)
118 VP_EXPLICIT
inline vpRGBa(
int v) : R(v), G(v), B(v), A(v)
143 vpRGBa &operator=(
const unsigned char &v);
144 vpRGBa &operator=(
const unsigned int &v);
145 vpRGBa &operator=(
const int &v);
147 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
151 bool operator==(
const vpRGBa &v)
const;
152 bool operator!=(
const vpRGBa &v)
const;
161 bool operator<(
const vpRGBa &v)
const;
162 bool operator>(
const vpRGBa &v)
const;
164 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpRGBa &rgba);
Implementation of column vector and the associated operations.
unsigned char B
Blue component.
VP_EXPLICIT vpRGBa(const vpColVector &v)
vpRGBa(unsigned char r, unsigned char g, unsigned char b, unsigned char a=vpRGBa::alpha_default)
VP_EXPLICIT vpRGBa(unsigned int v)
unsigned char R
Red component.
VP_EXPLICIT vpRGBa(int v)
unsigned char G
Green component.
VP_EXPLICIT vpRGBa(unsigned char v)
unsigned char A
Additionnal component.
vpMatrix operator*(const double &x, const vpMatrix &A)