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

An image loader that reads PNG files to create an Image with an index pixel type. More...

#include <png_indexed_image_loader.hpp>

Public Member Functions

 PngIndexedImageLoader ()=default
 
Result< std::unique_ptr< Image< IndexPixel > > > load_from_file (const std::filesystem::path &path) const
 

Detailed Description

An image loader that reads PNG files to create an Image with an index pixel type.

This loader's implementation uses png++ wrapper for libpng to read PNG data and load it into an Image.

Definition at line 19 of file png_indexed_image_loader.hpp.

Constructor & Destructor Documentation

◆ PngIndexedImageLoader()

porytiles2::PngIndexedImageLoader::PngIndexedImageLoader ( )
default

Member Function Documentation

◆ load_from_file()

Result< std::unique_ptr< Image< IndexPixel > > > porytiles2::PngIndexedImageLoader::load_from_file ( const std::filesystem::path &  path) const

Definition at line 14 of file png_indexed_image_loader.cpp.


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