31 #ifndef PNGPP_PIXEL_TRAITS_HPP_INCLUDED
32 #define PNGPP_PIXEL_TRAITS_HPP_INCLUDED
56 template<
typename pixel,
59 size_t channels_value =
sizeof(pixel) /
sizeof(component),
60 size_t bit_depth_value = std::numeric_limits< component >::digits >
68 return pixel_color_type;
88 template<
typename component >
97 return std::numeric_limits< component >::max();
103 #endif // PNGPP_PIXEL_TRAITS_HPP_INCLUDED
static const size_t channels
Definition: pixel_traits.hpp:71
pixel pixel_type
Definition: pixel_traits.hpp:63
Pixel traits class template.
Definition: pixel_traits.hpp:48
color_type
Definition: types.hpp:46
static component get_alpha_filler()
Returns the default alpha channel filler for full opacity.
Definition: pixel_traits.hpp:95
Basic pixel traits class template.
Definition: pixel_traits.hpp:61
static color_type get_color_type()
Definition: pixel_traits.hpp:66
static size_t get_bit_depth()
Definition: pixel_traits.hpp:78
static size_t get_channels()
Definition: pixel_traits.hpp:72
component component_type
Definition: pixel_traits.hpp:64
Basic pixel traits class template for pixels with alpha channel.
Definition: pixel_traits.hpp:89
static const size_t bit_depth
Definition: pixel_traits.hpp:77