1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#pragma once #include "image.h" #include <cstdint> #include <cstring> class BMPImage : public Image { private: public: template<std::derived_from<Image> T> BMPImage(const T& other) : Image(other) { } int readFromFile(std::string filename) override; int writeToFile(std::string filename) override; };