Porytiles
Loading...
Searching...
No Matches
porytiles::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 png++ wrapper for libpng 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 png++ details.

Definition at line 19 of file png_rgba_image_saver.hpp.

Constructor & Destructor Documentation

◆ PngRgbaImageSaver()

porytiles::PngRgbaImageSaver::PngRgbaImageSaver ( )
default

◆ ~PngRgbaImageSaver()

virtual porytiles::PngRgbaImageSaver::~PngRgbaImageSaver ( )
virtualdefault

Member Function Documentation

◆ save_to_file()

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

Definition at line 15 of file png_rgba_image_saver.cpp.


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