Porytiles
Loading...
Searching...
No Matches
png_indexed_image_saver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <filesystem>
5#include <memory>
6
11
12namespace porytiles2 {
13
21 public:
23 virtual ~PngIndexedImageSaver() = default;
24
25 [[nodiscard]] virtual ChainableResult<void>
26 save_to_file(const Image<IndexPixel> &image, const std::filesystem::path &path, TilesPalMode mode) const;
27};
28
29} // 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 index pixel type.
virtual ChainableResult< void > save_to_file(const Image< IndexPixel > &image, const std::filesystem::path &path, TilesPalMode mode) const
virtual ~PngIndexedImageSaver()=default