Files
GraphicsSandbox/src/image_writers/PpmImage.hpp
T
2026-06-14 09:18:46 -07:00

24 lines
445 B
C++

#ifndef PPM_IMAGE_HPP
#define PPM_IMAGE_HPP
#include "Image.hpp"
#include <cstdint>
#include <vector>
namespace image_writers {
class PpmImage : public Image {
public:
PpmImage(const std::vector<std::vector<std::uint8_t>> &imageData);
~PpmImage() = default;
bool writeToFile(const std::filesystem::path &filePath) override;
private:
const std::vector<std::vector<std::uint8_t>> &imageData_;
};
} // namespace image_writers
#endif