|
png++ 0.2.10
|
PNG writer class template. This is the low-level writing interface–use image class or generator class to actually write images. More...
#include <writer.hpp>
Additional Inherited Members | |
Protected Member Functions inherited from png::io_base | |
| void * | get_io_ptr () const |
| void | set_error (char const *message) |
| void | reset_error () |
| bool | is_error () const |
| void | raise_error () |
Static Protected Member Functions inherited from png::io_base | |
| static void | raise_error (png_struct *png, char const *message) |
Protected Attributes inherited from png::io_base | |
| png_struct * | m_png |
| info | m_info |
| end_info | m_end_info |
| std::string | m_error |
PNG writer class template. This is the low-level writing interface–use image class or generator class to actually write images.
The ostream template parameter specifies the type of output stream to work with. The ostream class should implement the minimum of the following interface:
With the semantics similar to the std::ostream. Naturally, std::ostream fits this requirement and can be used with the writer class as is.
|
inlineexplicit |
Constructs a writer prepared to write PNG image into a stream.
References png::io_base::m_png.
|
inline |
|
inline |
|
inline |
Write info about PNG image.
References png::io_base::m_error, png::io_base::m_info, png::io_base::m_png, and png::info::write().
Writes a row of image data at a time.
References png::io_base::m_error, and png::io_base::m_png.
|
inline |
Reads ending info about PNG image.
References png::io_base::m_end_info, png::io_base::m_error, png::io_base::m_png, and png::end_info::write().