|
|
| Rgb (const Rgb &)=default |
| |
|
Rgb & | operator= (const Rgb &)=default |
| |
| | Rgb (T r, T g, T b) |
| | Constructs a colour as specified. More...
|
| |
|
template<class S > |
| | Rgb (const Rgb< S > &rgb) |
| |
| bool | operator== (const Rgb< T > &c) const |
| | Logical equals operator. More...
|
| |
| bool | operator!= (const Rgb< T > &c) const |
| | Logical not-equals operator. More...
|
| |
| template<class T2 > |
| Rgb< T > & | operator= (const Rgb< T2 > &c) |
| | Assignment operator between two different storage types, using the standard casts as necessary. More...
|
| |
|
(Note that these are not member functions.)
|
| template<class T > |
| std::ostream & | operator<< (std::ostream &os, const Rgb< T > &x) |
| | Write the colour to a stream in the format "(red,green,blue)". More...
|
| |
| std::ostream & | operator<< (std::ostream &os, const Rgb< char > &x) |
| | Read a colour from a stream, interpreting three numbers as chars. More...
|
| |
| std::ostream & | operator<< (std::ostream &os, const Rgb< byte > &x) |
| | Read a colour from a stream, interpreting three numbers as bytes. More...
|
| |
template<class T>
class CVD::Rgb< T >
A colour consisting of red, green and blue components.
Often used to store 24-bit colour information, i.e. CVD::Rgb<CVD::byte>
- Parameters
-
| T | The datatype of each component |