Porytiles
Loading...
Searching...
No Matches
porytiles2::PngIndexedImageSaver Class Reference

An image saver that saves PNG files from an Image with an index pixel type. More...

#include <png_indexed_image_saver.hpp>

Public Member Functions

 PngIndexedImageSaver ()=default
 
virtual ~PngIndexedImageSaver ()=default
 
virtual ChainableResult< void > save_to_file (const Image< IndexPixel > &image, const std::filesystem::path &path, TilesPalMode mode) const
 

Detailed Description

An image saver that saves PNG files from an Image with an index pixel type.

This loader's implementation uses png++ wrapper for libpng to save the Image to a PNG.

Definition at line 20 of file png_indexed_image_saver.hpp.

Constructor & Destructor Documentation

◆ PngIndexedImageSaver()

porytiles2::PngIndexedImageSaver::PngIndexedImageSaver ( )
default

◆ ~PngIndexedImageSaver()

virtual porytiles2::PngIndexedImageSaver::~PngIndexedImageSaver ( )
virtualdefault

Member Function Documentation

◆ save_to_file()

ChainableResult< void > porytiles2::PngIndexedImageSaver::save_to_file ( const Image< IndexPixel > &  image,
const std::filesystem::path &  path,
TilesPalMode  mode 
) const
virtual

Definition at line 16 of file png_indexed_image_saver.cpp.


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