Added PPM writer
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user