Class PNMImage#

Nested Relationships#

Nested Types#

Inheritance Relationships#

Base Type#

Class Documentation#

class PNMImage : public TRAP::Image#

Public Functions

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

Constructor.

Parameters:

filepath – File path of the image to load.

PNMImage(const PNMImage&) noexcept = default#

Copy constructor.

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

Copy assignment operator.

PNMImage(PNMImage&&) noexcept = default#

Move constructor.

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

Move assignment operator.

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