Information
MediaSupport
RSSOther Adobe ProjectsOther Resources |
PNG I/OSupport for reading and writing PNG image files.
More... |
Classes | |
struct | png_read_support< VIEW > |
Determines whether the given view type is supported for reading. More... | |
struct | png_write_support< VIEW > |
Determines whether the given view type is supported for writing. More... | |
Functions | |
template<typename IMAGE> | |
void | png_read_and_convert_image (const std::string &filename, IMAGE &im) |
template<typename IMAGE> | |
void | png_read_and_convert_image (const char *filename, IMAGE &im) |
template<typename VIEW> | |
void | png_read_and_convert_view (const std::string &filename, const VIEW &view) |
template<typename VIEW> | |
void | png_read_and_convert_view (const char *filename, const VIEW &view) |
point2< int > | png_read_dimensions (const std::string &filename) |
ADOBE_GIL_NAMESPACE_BEGIN point2< int > | png_read_dimensions (const char *filename) |
template<typename IMAGE> | |
void | png_read_image (const std::string &filename, IMAGE &im) |
template<typename IMAGE> | |
void | png_read_image (const char *filename, IMAGE &im) |
template<typename IMAGES> | |
void | png_read_image (const std::string &filename, any_image< IMAGES > &im) |
template<typename IMAGES> | |
void | png_read_image (const char *filename, any_image< IMAGES > &im) |
template<typename VIEW> | |
void | png_read_view (const std::string &filename, const VIEW &view) |
template<typename VIEW> | |
void | png_read_view (const char *filename, const VIEW &view) |
template<typename VIEW> | |
void | png_write_view (const std::string &filename, const VIEW &view) |
template<typename VIEW> | |
void | png_write_view (const char *filename, const VIEW &view) |
template<typename VIEWS> | |
void | png_write_view (const std::string &filename, const any_image_view< VIEWS > &runtime_view) |
template<typename VIEWS> | |
void | png_write_view (const char *filename, const any_image_view< VIEWS > &runtime_view) |
|
reads a PNG image into a run-time instantiated image Opens the given png file name, selects the first type in IMAGES whose color space and channel are compatible to those of the image file and creates a new image of that type with the dimensions specified by the image file.
Definition at line 107 of file png_dynamic_io.hpp. |
|
reads a PNG image into a run-time instantiated image
Definition at line 115 of file png_dynamic_io.hpp. |
|
Saves the currently instantiated view to a png file specified by the given png image file name. Throws std::ios_base::failure if the currently instantiated view type is not supported for writing by the I/O extension or if it fails to create the file.
Definition at line 124 of file png_dynamic_io.hpp. |
|
Saves the currently instantiated view to a png file specified by the given png image file name.
Definition at line 132 of file png_dynamic_io.hpp. |
|
Returns the width and height of the PNG file at the specified location. Throws std::ios_base::failure if the location does not correspond to a valid PNG file.
Definition at line 42 of file png_io.hpp. |
|
Returns the width and height of the PNG file at the specified location. Throws std::ios_base::failure if the location does not correspond to a valid PNG file.
Definition at line 50 of file png_io.hpp. |
|
Loads the image specified by the given png image file name into the given view. Triggers a compile assert if the view color space and channel depth are not supported by the PNG library or by the I/O extension. Throws std::ios_base::failure if the file is not a valid PNG file, or if its color space or channel depth are not compatible with the ones specified by VIEW, or if its dimensions don't match the ones of the view.
Definition at line 76 of file png_io.hpp. |
|
Loads the image specified by the given png image file name into the given view.
Definition at line 85 of file png_io.hpp. |
|
Allocates a new image whose dimensions are determined by the given png image file, and loads the pixels into it. Triggers a compile assert if the image color space or channel depth are not supported by the PNG library or by the I/O extension. Throws std::ios_base::failure if the file is not a valid PNG file, or if its color space or channel depth are not compatible with the ones specified by IMAGE.
Definition at line 95 of file png_io.hpp. |
|
Allocates a new image whose dimensions are determined by the given png image file, and loads the pixels into it.
Definition at line 104 of file png_io.hpp. |
|
Loads the image specified by the given png image file name and color-converts it into the given view. Throws std::ios_base::failure if the file is not a valid PNG file, or if its dimensions don't match the ones of the view.
Definition at line 112 of file png_io.hpp. |
|
Loads the image specified by the given png image file name and color-converts it into the given view.
Definition at line 120 of file png_io.hpp. |
|
Allocates a new image whose dimensions are determined by the given png image file, loads and color-converts the pixels into it. Throws std::ios_base::failure if the file is not a valid PNG file.
Definition at line 128 of file png_io.hpp. |
|
Allocates a new image whose dimensions are determined by the given png image file, loads and color-converts the pixels into it.
Definition at line 136 of file png_io.hpp. |
|
Saves the view to a png file specified by the given png image file name. Triggers a compile assert if the view color space and channel depth are not supported by the PNG library or by the I/O extension. Throws std::ios_base::failure if it fails to create the file.
Definition at line 161 of file png_io.hpp. |
|
Saves the view to a png file specified by the given png image file name.
Definition at line 170 of file png_io.hpp. |