curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | Friends | List of all members
curfil::RGBColor Class Reference

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 >
elements
 STL member.

Detailed Description

A tuple of three 8-bit uints that represent a RGB color value.

Definition at line 24 of file image.h.

Constructor & Destructor Documentation

curfil::RGBColor::RGBColor ( const std::string &  colorString)

Creates a RGB color from a string.

Example: RGBColor("255,128,0") == RGBColor(0x255, 0x128, 0x0)

Member Function Documentation

std::string curfil::RGBColor::toString ( ) const
inline

convert the RGB color to string.

Example: RGBColor(0x255, 0x128, 0x0).toString() == "255,128,0"

Definition at line 49 of file image.h.


The documentation for this class was generated from the following file: