MeshLib C Docs
Loading...
Searching...
No Matches
MRImageSave.h File Reference
#include <MRCMisc/exports.h>

Go to the source code of this file.

Typedefs

typedef struct MR_Image MR_Image
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 

Functions

MRC_API MR_expected_void_std_stringMR_ImageSave_toBmp (const MR_Image *image, const char *path, const char *path_end)
 
MRC_API MR_expected_void_std_stringMR_ImageSave_toAnySupportedFormat (const MR_Image *image, const char *path, const char *path_end)
 

Typedef Documentation

◆ MR_expected_void_std_string

◆ MR_Image

typedef struct MR_Image MR_Image

Function Documentation

◆ MR_ImageSave_toAnySupportedFormat()

MRC_API MR_expected_void_std_string * MR_ImageSave_toAnySupportedFormat ( const MR_Image * image,
const char * path,
const char * path_end )

detects the format from file extension and save image to it
Generated from function MR::ImageSave::toAnySupportedFormat. Parameter image can not be null. It is a single object. Parameter path is a UTF-8 encoded filesystem path. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_ImageSave_toBmp()

MRC_API MR_expected_void_std_string * MR_ImageSave_toBmp ( const MR_Image * image,
const char * path,
const char * path_end )

saves in .bmp format Generated from function MR::ImageSave::toBmp. Parameter image can not be null. It is a single object. Parameter path is a UTF-8 encoded filesystem path. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.