diff --git a/src/bitmap/bitmap.cpp b/src/bitmap/bitmap.cpp index 7eab19b..f5f3490 100644 --- a/src/bitmap/bitmap.cpp +++ b/src/bitmap/bitmap.cpp @@ -46,6 +46,14 @@ void Bitmap::clear() { } +size_t Bitmap::get_width() const { + return width; +} + + +size_t Bitmap::get_height() const { + return height; +} void Bitmap::setpixel( size_t row, @@ -54,6 +62,7 @@ void Bitmap::setpixel( uint8_t g, uint8_t b ) { + data[row][col] = std::make_tuple(r, g, b); } diff --git a/src/bitmap/bitmap.hpp b/src/bitmap/bitmap.hpp index 9b4544d..b03275c 100644 --- a/src/bitmap/bitmap.hpp +++ b/src/bitmap/bitmap.hpp @@ -22,6 +22,9 @@ class Bitmap { void save(const char *filename) const; + size_t get_width() const; + size_t get_height() const; + private: size_t width; size_t height;