aboutsummaryrefslogtreecommitdiff
path: root/src/BMPImage.h
diff options
context:
space:
mode:
authorBossCode45 <boss@tehbox.org>2025-06-27 17:58:36 +1200
committerBossCode45 <boss@tehbox.org>2025-07-24 12:48:21 +1200
commit078b4e08fe3bccb7424dac76e158bf8bf48a182d (patch)
treea4f84f3fc346053c1c41990be4cc0867ab206cf5 /src/BMPImage.h
parenteed164fa72297efb69b624f3c58cb5deb339a974 (diff)
downloadtehimage-078b4e08fe3bccb7424dac76e158bf8bf48a182d.tar.gz
tehimage-078b4e08fe3bccb7424dac76e158bf8bf48a182d.zip
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
Diffstat (limited to 'src/BMPImage.h')
-rw-r--r--src/BMPImage.h15
1 files changed, 15 insertions, 0 deletions
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 <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;
+};