Class PNGImage#

Inheritance Relationships#

Base Type#

Class Documentation#

class PNGImage : public TRAP::Image#

Public Functions

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

Constructor.

Parameters:

filepath – File path of the image to load.

PNGImage(const PNGImage&) noexcept = default#

Copy constructor.

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

Copy assignment operator.

PNGImage(PNGImage&&) noexcept = default#

Move constructor.

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

Move assignment operator.

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