Go to the documentation of this file.
   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 color_type get_color_type()
Definition: pixel_traits.hpp:66
color_type
Definition: types.hpp:47
Basic pixel traits class template for pixels with alpha channel.
Definition: pixel_traits.hpp:90
static const int channels
Definition: pixel_traits.hpp:71
Pixel traits class template.
Definition: pixel_traits.hpp:48
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:62
component component_type
Definition: pixel_traits.hpp:64
static int get_bit_depth()
Definition: pixel_traits.hpp:78
pixel pixel_type
Definition: pixel_traits.hpp:63
static const int bit_depth
Definition: pixel_traits.hpp:77
static int get_channels()
Definition: pixel_traits.hpp:72