31#ifndef PNGPP_PIXEL_TRAITS_HPP_INCLUDED
32#define PNGPP_PIXEL_TRAITS_HPP_INCLUDED
56 template<
typename pixel,
88 template<
typename component >
97 return std::numeric_limits< component >::max();
The PNG reader class template. This is the low-level reading interface–use image class or consumer cl...
Definition reader.hpp:67
color_type
Definition types.hpp:47
Basic pixel traits class template for pixels with alpha channel.
Definition pixel_traits.hpp:90
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 const int bit_depth
Definition pixel_traits.hpp:77
static int get_bit_depth()
Definition pixel_traits.hpp:78
pixel pixel_type
Definition pixel_traits.hpp:63
static color_type get_color_type()
Definition pixel_traits.hpp:66
static const int channels
Definition pixel_traits.hpp:71
static int get_channels()
Definition pixel_traits.hpp:72
Pixel traits class template.
Definition pixel_traits.hpp:48