MeshLib
 
Loading...
Searching...
No Matches
Image Load

Functions

MRMESH_API Expected< ImageMR::ImageLoad::fromPng (const std::filesystem::path &path)
 loads from .png format
 
MRMESH_API Expected< ImageMR::ImageLoad::fromPng (std::istream &in)
 
MRMESH_API Expected< ImageMR::ImageLoad::fromJpeg (const std::filesystem::path &path)
 loads from .jpg format
 
MRMESH_API Expected< ImageMR::ImageLoad::fromJpeg (std::istream &in)
 
MRMESH_API Expected< ImageMR::ImageLoad::fromJpeg (const char *data, size_t size)
 
MRMESH_API Expected< ImageMR::ImageLoad::fromAnySupportedFormat (const std::filesystem::path &path)
 detects the format from file extension and loads image from it
 

Variables

MRMESH_API const IOFilters MR::ImageLoad::Filters
 

Detailed Description

Function Documentation

◆ fromAnySupportedFormat()

MRMESH_API Expected< Image > MR::ImageLoad::fromAnySupportedFormat ( const std::filesystem::path & path)

detects the format from file extension and loads image from it

◆ fromJpeg() [1/3]

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

◆ fromJpeg() [2/3]

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

loads from .jpg format

◆ fromJpeg() [3/3]

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

◆ fromPng() [1/2]

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

loads from .png format

◆ fromPng() [2/2]

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

Variable Documentation

◆ Filters

MRMESH_API const IOFilters MR::ImageLoad::Filters
extern