MeshLib
 
Loading...
Searching...
No Matches
MRImageLoad.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::ImageLoad
 

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