91 mrpt::system::os::sprintf(buf,
sizeof(buf),
"RGBA=[%u,%u,%u,%u]",static_cast<unsigned int>(
c.R),static_cast<unsigned int>(
c.G),static_cast<unsigned int>(
c.B),static_cast<unsigned int>(
c.A) );
99 o <<
c.R<<
c.G<<
c.B<<
c.A;
105 i >>
c.R>>
c.G>>
c.B>>
c.A;
122 o <<
c.R<<
c.G<<
c.B<<
c.A;
128 i >>
c.R>>
c.G>>
c.B>>
c.A;
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
TColor & operator+=(const TColor &other)
static TColor blue
Predefined colors.
static TColor white
Predefined colors.
::mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, CImagePtr &pObj)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
TColor & operator-=(const TColor &other)
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
CStream BASE_IMPEXP & operator<<(mrpt::utils::CStream &s, const char *a)
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
static TColor red
Predefined colors.
A RGB color - floats in the range [0,1].
static TColor black
Predefined colors.
bool operator==(const CArray< T, N > &x, const CArray< T, N > &y)
int BASE_IMPEXP sprintf(char *buf, size_t bufSize, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...
static TColor gray
Predefined colors.
TColor & operator=(const TColor &other)
static TColor green
Predefined colors.