34 Pixel(
unsigned char red,
unsigned char green,
unsigned char blue)
noexcept;
42 unsigned char getRed()
const noexcept;
49 unsigned char getGreen()
const noexcept;
56 unsigned char getBlue()
const noexcept;
70 std::string
toString()
const noexcept;
89std::ostream&
operator<<(std::ostream& out,
const Pixel& pixel)
noexcept;
99inline Pixel::Pixel(
unsigned char red,
unsigned char green,
unsigned char blue) noexcept
122 return _red == rhs._red &&
123 _green == rhs._green &&
134 return "(" + std::to_string(_red) +
", " + std::to_string(_green) +
", " + std::to_string(_blue) +
")";
139 out << pixel.toString();
Represents a pixel with three color channels and 8 bits of color depth.
Definition Pixel.h:22
bool operator==(const Pixel &rhs) const noexcept
Equal operator.
Definition Pixel.h:120
unsigned char getBlue() const noexcept
Returns the blue color value.
Definition Pixel.h:115
unsigned char getRed() const noexcept
Returns the red color value.
Definition Pixel.h:105
bool operator!=(const Pixel &rhs) const noexcept
Unequal operator.
Definition Pixel.h:127
Pixel() noexcept
Constructor.
Definition Pixel.h:93
std::string toString() const noexcept
Returns a string representation of the pixel (red, green, blue).
Definition Pixel.h:132
unsigned char getGreen() const noexcept
Returns the green color value.
Definition Pixel.h:110
Main SDK namespace.
Definition DeviceInfo.h:23
OTC_SDK_API std::ostream & operator<<(std::ostream &out, DeviceType deviceType) noexcept
Output stream operator for device types.