From 078b4e08fe3bccb7424dac76e158bf8bf48a182d Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Fri, 27 Jun 2025 17:58:36 +1200 Subject: feat: Made it so that you can now convert between image subclasses Also added the bitmap image subclass note: this is pretty hacky in how it works --- src/BMPImage.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/BMPImage.h (limited to 'src/BMPImage.h') diff --git a/src/BMPImage.h b/src/BMPImage.h new file mode 100644 index 0000000..697c72d --- /dev/null +++ b/src/BMPImage.h @@ -0,0 +1,15 @@ +#pragma once + +#include "image.h" +#include +#include + +class BMPImage : public Image +{ +private: +public: + template T> BMPImage(const T& other) : Image(other) { } + + int readFromFile(std::string filename) override; + int writeToFile(std::string filename) override; +}; -- cgit v1.2.3