Function Kataglyphis::saveScreenshotPng

Function Kataglyphis::saveScreenshotPng#

Function Documentation#

std::optional<std::filesystem::path> Kataglyphis::saveScreenshotPng(const std::filesystem::path &directory, std::vector<std::uint8_t> rgba, std::uint32_t width, std::uint32_t height)#

Writes RGBA8 as an opaque PNG at nextScreenshotPath(), making directory; nothing when a step failed, as logged.