MeshLib Documentation
Loading...
Searching...
No Matches
MRImageLoad.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRIOFilters.h"
4#include "MRExpected.h"
5#include <filesystem>
6
7namespace MR
8{
9
10struct Image;
11
12namespace ImageLoad
13{
14
18
20MRMESH_API Expected<Image> fromAnySupportedFormat( const std::filesystem::path& path );
21
23
24}
25
26}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API Expected< Image > fromAnySupportedFormat(const std::filesystem::path &path)
detects the format from file extension and loads image from it
MRVIEWER_API void Image(const MR::ImGuiImage &image, const ImVec2 &size, const MR::Color &multColor)
draw image with Y-direction inversed up-down
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58