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

Typedefs

using ImageLoader = Expected<Image>( * )( const std::filesystem::path& )

Functions

Expected< ImagefromJpeg (const std::filesystem::path &path, bool ignoreDecompressErrors=false)
Expected< ImagefromJpeg (std::istream &in, bool ignoreDecompressErrors=false)
Expected< ImagefromJpeg (const char *data, size_t size, bool ignoreDecompressErrors=false)
Expected< ImagefromPng (const std::filesystem::path &path)
 loads from .png format
Expected< ImagefromPng (std::istream &in)
Expected< ImagefromTiff (const std::filesystem::path &path)
 loads from .tiff format
Expected< ImagefromAnySupportedFormat (const std::filesystem::path &path)
 detects the format from file extension and loads image from it

Typedef Documentation

◆ ImageLoader

using MR::ImageLoad::ImageLoader = Expected<Image>( * )( const std::filesystem::path& )