MeshLib
 
Loading...
Searching...
No Matches
MRImageSave.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRIOFilters.h"
5#include "MRExpected.h"
6#include <filesystem>
7
8namespace MR
9{
10
11struct Image;
12
13namespace ImageSave
14{
15
19
21MRMESH_API Expected<void> toBmp( const Image& image, const std::filesystem::path& path );
22
23#ifndef __EMSCRIPTEN__
24
25#ifndef MRMESH_NO_TIFF
26MRMESH_API Expected<void> toTiff( const Image& image, const std::filesystem::path& path );
27#endif
28
29#endif
30
32MRMESH_API Expected<void> toAnySupportedFormat( const Image& image, const std::filesystem::path& path );
33
35
36}
37
38}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API Expected< void > toBmp(const Image &image, const std::filesystem::path &path)
saves in .bmp format
MRMESH_API Expected< void > toTiff(const Image &image, const std::filesystem::path &path)
MRMESH_API Expected< void > toAnySupportedFormat(const Image &image, const std::filesystem::path &path)
detects the format from file extension and save image to 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
Definition MRImage.h:15