MeshLib
 
Loading...
Searching...
No Matches
MR::ImageSave Namespace Reference

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)
 
MRMESH_API Expected< void > toBmp (const Image &image, const std::filesystem::path &path)
 saves in .bmp format
 
MRMESH_API Expected< void > toTiff (const Image &image, const std::filesystem::path &path)
 
MRMESH_API 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& )

Function Documentation

◆ toJpeg()

MRIOEXTRAS_API Expected< void > MR::ImageSave::toJpeg ( const Image & image,
const std::filesystem::path & path )

saves in .jpg format

◆ toPng() [1/2]

MRIOEXTRAS_API Expected< void > MR::ImageSave::toPng ( const Image & image,
const std::filesystem::path & path )

saves in .png format

◆ toPng() [2/2]

MRIOEXTRAS_API Expected< void > MR::ImageSave::toPng ( const Image & image,
std::ostream & os )