Color class for red-green-blue where every component is n-bit encoded.
More...
#include <rgb.hh>
Inherits mln::value::Vectorial< E >, and mln::value::internal::value_like_< V, C, N, E >.
List of all members.
Public Member Functions |
rgb< n > & | operator= (const rgb< n > &rhs) |
| Assignment.
|
| rgb () |
| Constructor without argument.
|
| rgb (int r, int g, int b) |
| Constructor from component values.
|
| rgb (const algebra::vec< 3, int > &rhs) |
| Constructor from a algebra::vec.
|
|
int_u< n > | red () const |
| Acces to red/green/blue component.
|
|
| rgb (const mln::literal::white_t &) |
| Constructors with literals.
|
Static Public Attributes |
static const rgb< n > | zero |
| Zero value.
|
Detailed Description
template<unsigned n>
struct mln::value::rgb< n >
Color class for red-green-blue where every component is n-bit encoded.
Definition at line 248 of file rgb.hh.
Constructor & Destructor Documentation
Constructor without argument.
Definition at line 422 of file rgb.hh.
Constructor from component values.
Definition at line 458 of file rgb.hh.
Constructor from a algebra::vec.
Definition at line 428 of file rgb.hh.
Constructors with literals.
Definition at line 473 of file rgb.hh.
Member Function Documentation
Assignment.
Definition at line 645 of file rgb.hh.
Member Data Documentation
Zero value.
Definition at line 322 of file rgb.hh.