Porytiles
Loading...
Searching...
No Matches
png_rgba_image_saver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
8
9namespace porytiles2 {
10
20 public:
21 PngRgbaImageSaver() = default;
22 virtual ~PngRgbaImageSaver() = default;
23
24 [[nodiscard]] virtual ChainableResult<void>
25 save_to_file(const Image<Rgba32> &image, const std::filesystem::path &path) const;
26};
27
28} // namespace porytiles2
A result type that maintains a chainable sequence of errors for debugging and error reporting.
A template for two-dimensional images with arbitrarily typed pixel values.
Definition image.hpp:24
An image saver that saves PNG files from an Image with an Rgba32 pixel type.
virtual ~PngRgbaImageSaver()=default
virtual ChainableResult< void > save_to_file(const Image< Rgba32 > &image, const std::filesystem::path &path) const