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

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

#include <png_rgba_image_saver.hpp>

Public Member Functions

 PngRgbaImageSaver ()=default
 
virtual ~PngRgbaImageSaver ()=default
 
virtual ChainableResult< void > save_to_file (const Image< Rgba32 > &image, const std::filesystem::path &path) const
 

Detailed Description

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

This saver's underlying implementation uses the CImg image processing library to write PNG data from an rgba 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 19 of file png_rgba_image_saver.hpp.

Constructor & Destructor Documentation

◆ PngRgbaImageSaver()

porytiles2::PngRgbaImageSaver::PngRgbaImageSaver ( )
default

◆ ~PngRgbaImageSaver()

virtual porytiles2::PngRgbaImageSaver::~PngRgbaImageSaver ( )
virtualdefault

Member Function Documentation

◆ save_to_file()

ChainableResult< void > porytiles2::PngRgbaImageSaver::save_to_file ( const Image< Rgba32 > &  image,
const std::filesystem::path &  path 
) const
virtual

Definition at line 20 of file png_rgba_image_saver.cpp.


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