|
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 CImg image processing library 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 CImg details.
Definition at line 20 of file png_rgba_image_loader.hpp.
|
default |
| ChainableResult< std::unique_ptr< Image< Rgba32 > >, ImageLoadError > porytiles2::PngRgbaImageLoader::load_from_file | ( | const std::filesystem::path & | path | ) | const |
Definition at line 18 of file png_rgba_image_loader.cpp.