Class PGMImage#

Nested Relationships#

Nested Types#

Inheritance Relationships#

Base Type#

Class Documentation#

class PGMImage : public TRAP::Image#

Public Functions

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

Constructor.

Parameters:

filepath – File path of the image to load.

PGMImage(const PGMImage&) noexcept = default#

Copy constructor.

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

Copy assignment operator.

PGMImage(PGMImage&&) noexcept = default#

Move constructor.

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

Move assignment operator.

~PGMImage() 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.