Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
png_io.hpp File Reference

Support for reading and writing PNG files Requires libpng and zlib! More...

#include <stdio.h>
#include <string>
#include "png.h"
#include <boost/static_assert.hpp>
#include "../../gil_config.hpp"
#include "../../utilities.hpp"
#include "io_error.hpp"
#include "png_io_private.hpp"
Include dependency graph for png_io.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::gil::png_read_support< View >
 Determines whether the given view type is supported for reading. More...
 
struct  boost::gil::png_write_support< View >
 Determines whether the given view type is supported for writing. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::gil
 

Functions

point2< std::ptrdiff_t > boost::gil::png_read_dimensions (const char *filename)
 Returns the width and height of the PNG file at the specified location. More...
 
point2< std::ptrdiff_t > boost::gil::png_read_dimensions (const std::string &filename)
 Returns the width and height of the PNG file at the specified location. More...
 
template<typename View >
void boost::gil::png_read_view (const char *filename, const View &view)
 Loads the image specified by the given png image file name into the given view. More...
 
template<typename View >
void boost::gil::png_read_view (const std::string &filename, const View &view)
 Loads the image specified by the given png image file name into the given view. More...
 
template<typename Image >
void boost::gil::png_read_image (const char *filename, Image &im)
 Allocates a new image whose dimensions are determined by the given png image file, and loads the pixels into it. More...
 
template<typename Image >
void boost::gil::png_read_image (const std::string &filename, Image &im)
 Allocates a new image whose dimensions are determined by the given png image file, and loads the pixels into it. More...
 
template<typename View , typename CC >
void boost::gil::png_read_and_convert_view (const char *filename, const View &view, CC cc)
 Loads the image specified by the given png image file name and color-converts it into the given view. More...
 
template<typename View >
void boost::gil::png_read_and_convert_view (const char *filename, const View &view)
 Loads the image specified by the given png image file name and color-converts it into the given view. More...
 
template<typename View , typename CC >
void boost::gil::png_read_and_convert_view (const std::string &filename, const View &view, CC cc)
 Loads the image specified by the given png image file name and color-converts it into the given view. More...
 
template<typename View >
void boost::gil::png_read_and_convert_view (const std::string &filename, const View &view)
 Loads the image specified by the given png image file name and color-converts it into the given view. More...
 
template<typename Image , typename CC >
void boost::gil::png_read_and_convert_image (const char *filename, Image &im, CC cc)
 Allocates a new image whose dimensions are determined by the given png image file, loads and color-converts the pixels into it. More...
 
template<typename Image >
void boost::gil::png_read_and_convert_image (const char *filename, Image &im)
 Allocates a new image whose dimensions are determined by the given png image file, loads and color-converts the pixels into it. More...
 
template<typename Image , typename CC >
void boost::gil::png_read_and_convert_image (const std::string &filename, Image &im, CC cc)
 Allocates a new image whose dimensions are determined by the given png image file, loads and color-converts the pixels into it. More...
 
template<typename Image >
void boost::gil::png_read_and_convert_image (const std::string &filename, Image &im)
 Allocates a new image whose dimensions are determined by the given png image file, loads and color-converts the pixels into it. More...
 
template<typename View >
void boost::gil::png_write_view (const char *filename, const View &view)
 Saves the view to a png file specified by the given png image file name. More...
 
template<typename View >
void boost::gil::png_write_view (const std::string &filename, const View &view)
 Saves the view to a png file specified by the given png image file name. More...
 

Detailed Description

Support for reading and writing PNG files Requires libpng and zlib!