diff --git a/Src/BMP.cpp b/Src/BMP.cpp index abcf1a3..9e716db 100644 --- a/Src/BMP.cpp +++ b/Src/BMP.cpp @@ -203,6 +203,14 @@ namespace Leonetienne::BmpPP { return; } + std::vector &BMP::GetPixelbuffer() { + return pixelBuffer; + } + + const std::vector &BMP::GetPixelbuffer() const { + return pixelBuffer; + } + } #undef CHECK_IF_INITIALIZED diff --git a/Src/BMP.h b/Src/BMP.h index b33a26e..d465f12 100644 --- a/Src/BMP.h +++ b/Src/BMP.h @@ -44,6 +44,12 @@ namespace Leonetienne::BmpPP { //! Will return a pointer to the raw pixel data [[nodiscard]] const std::uint8_t* data() const; + //! Will return the actual vector containing the raw pixel data + [[nodiscard]] std::vector& GetPixelbuffer(); + + //! Will return the actual vector containing the raw pixel data + [[nodiscard]] const std::vector& GetPixelbuffer() const; + //! Will return the dimensions of the image [[nodiscard]] const Eule::Vector2i& GetDimensions() const;