Added getter for the pixelbuffer
This commit is contained in:
parent
169a9c4892
commit
469b3cc18f
@ -203,6 +203,14 @@ namespace Leonetienne::BmpPP {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::vector<std::uint8_t> &BMP::GetPixelbuffer() {
|
||||||
|
return pixelBuffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
const std::vector<std::uint8_t> &BMP::GetPixelbuffer() const {
|
||||||
|
return pixelBuffer;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CHECK_IF_INITIALIZED
|
#undef CHECK_IF_INITIALIZED
|
||||||
|
@ -44,6 +44,12 @@ namespace Leonetienne::BmpPP {
|
|||||||
//! Will return a pointer to the raw pixel data
|
//! Will return a pointer to the raw pixel data
|
||||||
[[nodiscard]] const std::uint8_t* data() const;
|
[[nodiscard]] const std::uint8_t* data() const;
|
||||||
|
|
||||||
|
//! Will return the actual vector containing the raw pixel data
|
||||||
|
[[nodiscard]] std::vector<std::uint8_t>& GetPixelbuffer();
|
||||||
|
|
||||||
|
//! Will return the actual vector containing the raw pixel data
|
||||||
|
[[nodiscard]] const std::vector<std::uint8_t>& GetPixelbuffer() const;
|
||||||
|
|
||||||
//! Will return the dimensions of the image
|
//! Will return the dimensions of the image
|
||||||
[[nodiscard]] const Eule::Vector2i& GetDimensions() const;
|
[[nodiscard]] const Eule::Vector2i& GetDimensions() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user