MeshLib
 
Loading...
Searching...
No Matches
MRImageSave.h File Reference
#include "MRMeshFwd.h"
#include "MRIOFilters.h"
#include "MRExpected.h"
#include <filesystem>

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::ImageSave
 

Functions

MRMESH_API VoidOrErrStr MR::ImageSave::toBmp (const Image &image, const std::filesystem::path &path)
 saves in .bmp format
 
MRMESH_API VoidOrErrStr MR::ImageSave::toPng (const Image &image, const std::filesystem::path &path)
 saves in .png format
 
MRMESH_API VoidOrErrStr MR::ImageSave::toPng (const Image &image, std::ostream &os)
 saves in .png format
 
MRMESH_API VoidOrErrStr MR::ImageSave::toJpeg (const Image &image, const std::filesystem::path &path)
 saves in .jpg format
 
MRMESH_API VoidOrErrStr MR::ImageSave::toTiff (const Image &image, const std::filesystem::path &path)
 
MRMESH_API VoidOrErrStr MR::ImageSave::toAnySupportedFormat (const Image &image, const std::filesystem::path &path)
 detects the format from file extension and save image to it

 

Variables

MRMESH_API const IOFilters MR::ImageSave::Filters