MeshLib C++ Docs
Loading...
Searching...
No Matches
MRImageSave.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRExpected.h"
5#include "MRIOFilters.h"
6
7#include <filesystem>
8
9namespace MR
10{
11
12struct Image;
13
14namespace ImageSave
15{
16
20
22MRMESH_API Expected<void> toBmp( const Image& image, const std::filesystem::path& path );
23
25MRMESH_API Expected<void> toAnySupportedFormat( const Image& image, const std::filesystem::path& path );
26
28
29}
30
31}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
MRMESH_API Expected< void > toBmp(const Image &image, const std::filesystem::path &path)
saves in .bmp format
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
tl::expected< T, E > Expected
Definition MRExpected.h:59
Definition MRImage.h:15