MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ImageSave Namespace Reference

Typedefs

using ImageSaver = Expected<void>( * )( const Image&, const std::filesystem::path& )

Functions

Expected< void > toJpeg (const Image &image, const std::filesystem::path &path)
 saves in .jpg format
Expected< void > toPng (const Image &image, const std::filesystem::path &path)
 saves in .png format
Expected< void > toPng (const Image &image, std::ostream &os)
Expected< void > toTiff (const Image &image, const std::filesystem::path &path)
 saves in .tiff format
Expected< void > toBmp (const Image &image, const std::filesystem::path &path)
 saves in .bmp format
Expected< void > toAnySupportedFormat (const Image &image, const std::filesystem::path &path)
 detects the format from file extension and save image to it

Typedef Documentation

◆ ImageSaver

using MR::ImageSave::ImageSaver = Expected<void>( * )( const Image&, const std::filesystem::path& )