Porytiles
Loading...
Searching...
No Matches
porytiles2::PngRgbaImageLoader Class Referencefinal

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 > >, ImageLoadErrorload_from_file (const std::filesystem::path &path) const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PngRgbaImageLoader()

porytiles2::PngRgbaImageLoader::PngRgbaImageLoader ( )
default

Member Function Documentation

◆ load_from_file()

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.


The documentation for this class was generated from the following files: