Go to the documentation of this file.
89 buf,
sizeof(buf),
"RGBA=[%u,%u,%u,%u]",
static_cast<unsigned int>(
c.R),
90 static_cast<unsigned int>(
c.G),
static_cast<unsigned int>(
c.B),
91 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;
114 buf,
sizeof(buf),
"RGBAf=[%f,%f,%f,%f]",
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;
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
TColor & operator=(const TColor &other)
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Virtual base class for "archives": classes abstracting I/O streams.
std::ostream & operator<<(std::ostream &o, const TColor &c)
int sprintf(char *buf, size_t bufSize, const char *format,...) noexcept MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
A RGB color - floats in the range [0,1].
TColor & operator-=(const TColor &other)
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &i, TColor &c)
TColor & operator+=(const TColor &other)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |