31 #ifndef PNGPP_PIXEL_TRAITS_HPP_INCLUDED 32 #define PNGPP_PIXEL_TRAITS_HPP_INCLUDED 56 template<
typename pixel,
59 int channels_value =
sizeof(pixel) /
sizeof(component),
60 int 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 int get_channels()
Definition: pixel_traits.hpp:72
static const int bit_depth
Definition: pixel_traits.hpp:77
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
static const int channels
Definition: pixel_traits.hpp:71
static int get_bit_depth()
Definition: pixel_traits.hpp:78
Basic pixel traits class template.
Definition: pixel_traits.hpp:61
static color_type get_color_type()
Definition: pixel_traits.hpp:66
component component_type
Definition: pixel_traits.hpp:64
Basic pixel traits class template for pixels with alpha channel.
Definition: pixel_traits.hpp:89