Class BMPImage#

Inheritance Relationships#

Base Type#

Class Documentation#

class BMPImage : public TRAP::Image#

Public Functions

explicit BMPImage(std::filesystem::path filepath)#

Constructor.

Parameters:

filepath – File path of the image to load.

BMPImage(const BMPImage&) noexcept = default#

Copy constructor.

BMPImage &operator=(const BMPImage&) noexcept = default#

Copy assignment operator.

BMPImage(BMPImage&&) noexcept = default#

Move constructor.

BMPImage &operator=(BMPImage&&) noexcept = default#

Move assignment operator.

~BMPImage() override = default#

Destructor.

virtual constexpr std::span<const u8> GetPixelData() const noexcept override#

Retrieve the raw pixel data of the image.

Returns:

Raw pixel data.