Go to the documentation of this file.
30 #ifndef __CLAW_PIXEL_HPP_
31 #define __CLAW_PIXEL_HPP_
67 explicit rgb_pixel(
const std::string& c );
164 #endif // __CLAW_PIXEL_HPP__
rgba_pixel & operator=(const rgb_pixel &that)
Assignement operator.
bool operator==(const rgba_pixel &that) const
Tell if two pixels are equal.
rgba_pixel blue_pixel(0, 0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
The blue color.
unsigned int pixel
Compressed representation.
rgba_pixel()
Default constructor.
struct claw::graphic::rgb_pixel::@14 components
Component by component representation.
unsigned char component_type
The type of the components of the color.
This is the main namespace.
rgba_pixel cyan_pixel(0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
The cyan color.
struct claw::graphic::rgba_pixel::@15::@17 components
Component by component representation.
unsigned char component_type
The type of the components of the color.
component_type luminosity() const
Get the luminosity of the pixel.
rgba_pixel yellow_pixel
The yellow color.
rgb_pixel rgb_pixel_8
A color with 8 bits per component.
component_type green
Green component.
rgba_pixel rgba_pixel_8
A color with 8 bits per component and an alpha channel.
rgb_pixel()
Default constructor.
rgba_pixel green_pixel(0, std::numeric_limits< rgba_pixel::component_type >::max(), 0, std::numeric_limits< rgba_pixel::component_type >::max())
The green color.
rgba_pixel red_pixel
The red color.
component_type alpha
Translucy.
bool operator==(const rgb_pixel &that) const
Compare to a pixel.
component_type red
Red component.
rgba_pixel white_pixel
The white color.
rgba_pixel magenta_pixel
The magenta color.
rgba_pixel transparent_pixel(0, 0, 0, 0)
A transparent color.
component_type blue
Blue component.
component_type red
Red component.
bool operator!=(const rgb_pixel &that) const
Compare to a pixel.
bool operator!=(const rgba_pixel &that) const
Tell if two pixels are different.
rgba_pixel black_pixel(0, 0, 0, std::numeric_limits< rgba_pixel::component_type >::max())
The black color.
component_type green
Green component.
component_type blue
Blue component.