31#ifndef PNGPP_REQUIRE_COLOR_SPACE_HPP_INCLUDED 
   32#define PNGPP_REQUIRE_COLOR_SPACE_HPP_INCLUDED 
   48        template< 
typename pixel >
 
   54        template<> 
inline char const*
 
   57            return "8-bit RGB color space required";
 
 
   60        template<> 
inline char const*
 
   63            return "16-bit RGB color space required";
 
 
   66        template<> 
inline char const*
 
   69            return "8-bit RGBA color space required";
 
 
   72        template<> 
inline char const*
 
   75            return "16-bit RGBA color space required";
 
 
   78        template<> 
inline char const*
 
   81            return "8-bit Grayscale color space required";
 
 
   84        template<> 
inline char const*
 
   87            return "1-bit Grayscale color space required";
 
 
   90        template<> 
inline char const*
 
   93            return "2-bit Grayscale color space required";
 
 
   96        template<> 
inline char const*
 
   99            return "4-bit Grayscale color space required";
 
 
  102        template<> 
inline char const*
 
  105            return "16-bit Grayscale color space required";
 
 
  108        template<> 
inline char const*
 
  111            return "8-bit Gray+Alpha color space required";
 
 
  114        template<> 
inline char const*
 
  117            return "16-bit Gray+Alpha color space required";
 
 
  120        template<> 
inline char const*
 
  123            return "8-bit Colormap color space required";
 
 
  126        template<> 
inline char const*
 
  129            return "1-bit Colormap color space required";
 
 
  132        template<> 
inline char const*
 
  135            return "2-bit Colormap color space required";
 
 
  138        template<> 
inline char const*
 
  141            return "4-bit Colormap color space required";
 
 
  154    template< 
typename pixel >
 
Exception class to represent runtime errors related to png++ operation.
Definition error.hpp:59
Base class for PNG reader/writer classes.
Definition io_base.hpp:63
int get_bit_depth() const
Definition io_base.hpp:150
color_type get_color_type() const
Definition io_base.hpp:140
Definition require_color_space.hpp:50
static char const * error_msg()
Pixel traits class template.
Definition pixel_traits.hpp:48
IO transformation class template. Enforces image color space.
Definition require_color_space.hpp:156
void operator()(io_base &io) const
Definition require_color_space.hpp:159
pixel_traits< pixel > traits
Definition require_color_space.hpp:157