This commit is contained in:
Leonetienne
2022-03-05 20:40:49 +01:00
parent f993241e9f
commit 33932906c4
5 changed files with 159 additions and 108 deletions

View File

@@ -8,6 +8,8 @@
namespace Leonetienne::BmpPP {
class BmpWriter;
class BMP {
public:
BMP();
@@ -53,11 +55,17 @@ namespace Leonetienne::BmpPP {
//! Returns false, if unable to open the file
bool Write(const std::string& filename) const;
//! Will read a bmp image from a file.
//! Returns false, if unable to open, or parse, file
bool Read(const std::string& filename);
private:
Eule::Vector2i size;
Colormode colormode;
std::vector<std::uint8_t> pixelBuffer;
bool isInitialized = false;
friend class BmpWriter;
};
}