RGB pixel.
More...
#include <pixel.hpp>
|
typedef unsigned char | component_type |
| The type of the components of the color.
|
|
RGB pixel.
Definition at line 44 of file pixel.hpp.
◆ rgb_pixel() [1/3]
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 99 of file pixel.cpp.
◆ rgb_pixel() [2/3]
claw::graphic::rgb_pixel::rgb_pixel |
( |
const rgba_pixel & |
p | ) |
|
Constructor.
- Parameters
-
Definition at line 111 of file pixel.cpp.
◆ rgb_pixel() [3/3]
claw::graphic::rgb_pixel::rgb_pixel |
( |
const std::string & |
c | ) |
|
|
explicit |
Constructor from a color name or code.
- Parameters
-
Definition at line 122 of file pixel.cpp.
◆ operator!=() [1/2]
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 162 of file pixel.cpp.
◆ operator!=() [2/2]
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 171 of file pixel.cpp.
◆ operator==() [1/2]
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 142 of file pixel.cpp.
◆ operator==() [2/2]
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 153 of file pixel.cpp.
The documentation for this struct was generated from the following files: