|
Porytiles
|
An image loader that reads PNG files to create an Image with an Rgba32 pixel type. More...
#include <png_rgba_image_loader.hpp>
Public Member Functions | |
| PngRgbaImageLoader ()=default | |
| ChainableResult< std::unique_ptr< Image< Rgba32 > >, ImageLoadError > | load_from_file (const std::filesystem::path &path) const |
An image loader that reads PNG files to create an Image with an Rgba32 pixel type.
This loader's underlying implementation uses the png++ wrapper for libpng to read PNG data and load it into an Image. However, these external library details are entirely encapsulated within the implementation. Users of the Porytiles library need not concern themselves with png++ details.
Definition at line 20 of file png_rgba_image_loader.hpp.
|
default |
| ChainableResult< std::unique_ptr< Image< Rgba32 > >, ImageLoadError > porytiles::PngRgbaImageLoader::load_from_file | ( | const std::filesystem::path & | path | ) | const |
Definition at line 14 of file png_rgba_image_loader.cpp.