MeshLib Documentation
Loading...
Searching...
No Matches
MR::ImageLoad Namespace Reference

Typedefs

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

Functions

MRIOEXTRAS_API Expected< ImagefromJpeg (const std::filesystem::path &path)
 loads from .jpg format
 
MRIOEXTRAS_API Expected< ImagefromJpeg (std::istream &in)
 
MRIOEXTRAS_API Expected< ImagefromJpeg (const char *data, size_t size)
 
MRIOEXTRAS_API Expected< ImagefromPng (const std::filesystem::path &path)
 loads from .png format
 
MRIOEXTRAS_API Expected< ImagefromPng (std::istream &in)
 
MRMESH_API 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& )

Function Documentation

◆ fromJpeg() [1/3]

MRIOEXTRAS_API Expected< Image > MR::ImageLoad::fromJpeg ( const char * data,
size_t size )

◆ fromJpeg() [2/3]

MRIOEXTRAS_API Expected< Image > MR::ImageLoad::fromJpeg ( const std::filesystem::path & path)

loads from .jpg format

◆ fromJpeg() [3/3]

MRIOEXTRAS_API Expected< Image > MR::ImageLoad::fromJpeg ( std::istream & in)

◆ fromPng() [1/2]

MRIOEXTRAS_API Expected< Image > MR::ImageLoad::fromPng ( const std::filesystem::path & path)

loads from .png format

◆ fromPng() [2/2]

MRIOEXTRAS_API Expected< Image > MR::ImageLoad::fromPng ( std::istream & in)