RGB pixel.
More...
#include <pixel.hpp>
Public Types |
typedef unsigned char | component_type |
| The type of the components of the color.
|
Detailed Description
RGB pixel.
Definition at line 44 of file pixel.hpp.
Constructor & Destructor Documentation
Constructor.
- Parameters
-
r | The value of the red field. |
g | The value of the green field. |
b | The value of the blue field. |
Definition at line 101 of file pixel.cpp.
claw::graphic::rgb_pixel::rgb_pixel |
( |
const rgba_pixel & |
p | ) |
|
claw::graphic::rgb_pixel::rgb_pixel |
( |
const std::string & |
c | ) |
|
|
explicit |
Constructor from a color name or code.
- Parameters
-
Definition at line 125 of file pixel.cpp.
Member Function Documentation
bool claw::graphic::rgb_pixel::operator!= |
( |
const rgb_pixel & |
that | ) |
const |
Compare to a pixel.
- Parameters
-
that | The pixel to compare to. |
Definition at line 168 of file pixel.cpp.
bool claw::graphic::rgb_pixel::operator!= |
( |
const rgba_pixel & |
that | ) |
const |
Compare to a pixel.
- Parameters
-
that | The pixel to compare to. |
Definition at line 178 of file pixel.cpp.
bool claw::graphic::rgb_pixel::operator== |
( |
const rgb_pixel & |
that | ) |
const |
bool claw::graphic::rgb_pixel::operator== |
( |
const rgba_pixel & |
that | ) |
const |
Compare to a pixel.
- Parameters
-
that | The pixel to compare to. |
Definition at line 158 of file pixel.cpp.
The documentation for this struct was generated from the following files: