A tuple of three 8-bit uints that represent a RGB color value. More...
#include <image.h>
Inherits std::vector< T >.
Public Member Functions | |
| RGBColor (uint8_t r, uint8_t g, uint8_t b) | |
| Creates an RGB color from red, green and blue values. | |
| RGBColor (const std::string &colorString) | |
| Creates a RGB color from a string. | |
| std::string | toString () const |
| convert the RGB color to string. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, RGBColor const &color) |
| add the string representation of the color to the stream | |
Additional Inherited Members | |
Public Attributes inherited from std::vector< T > | |
| T | elements |
| STL member. | |
A tuple of three 8-bit uints that represent a RGB color value.
| curfil::RGBColor::RGBColor | ( | const std::string & | colorString | ) |
Creates a RGB color from a string.
Example: RGBColor("255,128,0") == RGBColor(0x255, 0x128, 0x0)
|
inline |
convert the RGB color to string.
Example: RGBColor(0x255, 0x128, 0x0).toString() == "255,128,0"
1.8.1.2