14 explicit PngImpl(
const cimg_library::CImg<std::uint8_t> &image);
16 [[nodiscard]] std::size_t
Width()
const override;
18 [[nodiscard]] std::size_t
Height()
const override;
20 [[nodiscard]]
Rgba32 At(std::size_t i)
const override;
22 [[nodiscard]]
Rgba32 At(std::size_t row, std::size_t col)
const override;
25 cimg_library::CImg<std::uint8_t> image_;
Implementation of the Png interface.
std::size_t Height() const override
Gets the height of this Png in pixels.
std::size_t Width() const override
Gets the width of this Png in pixels.
Rgba32 At(std::size_t i) const override
Fetches the Rgba32 color value at a given one-dimensional pixel index.