Class CustomImage#

Inheritance Relationships#

Base Type#

Class Documentation#

class CustomImage : public TRAP::Image#

Public Functions

template<typename T>
CustomImage(std::filesystem::path filepath, u32 width, u32 height, ColorFormat format, std::vector<T> pixelData)#

Constructor.

Parameters:
  • filepath – File path of image.

  • width – Width for the image.

  • height – Height for the image.

  • format – Color format of the pixel data.

  • pixelData – Raw pixel data.

CustomImage(const CustomImage&) noexcept = default#

Copy constructor.

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

Copy assignment operator.

CustomImage(CustomImage&&) noexcept = default#

Move constructor.

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

Move assignment operator.

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