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 porytiles {
13
19 public:
21 virtual ~PngIndexedImageSaver() = default;
22
23 [[nodiscard]] virtual ChainableResult<void>
24 save_to_file(const Image<IndexPixel> &image, const std::filesystem::path &path, TilesPaletteMode mode) const;
25};
26
27} // namespace porytiles
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:21
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, TilesPaletteMode mode) const
virtual ~PngIndexedImageSaver()=default
TilesPaletteMode
Controls how tiles.png is rendered.