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

namespace ImageLoad More...

Typedefs

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

Functions

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

 

Detailed Description

namespace ImageLoad

Typedef Documentation

◆ ImageSaver

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