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

Go to the source code of this file.

Functions

MRC_API MR_expected_MR_Raster_std_string * MR_RasterLoad_fromAnySupportedFormat (const char *path, const char *path_end, const MR_RasterLoadSettings *settings)
MRC_API MR_expected_MR_RasterInfo_std_string * MR_RasterLoad_infoFromAnySupportedFormat (const char *path, const char *path_end)

Function Documentation

◆ MR_RasterLoad_fromAnySupportedFormat()

MRC_API MR_expected_MR_Raster_std_string * MR_RasterLoad_fromAnySupportedFormat ( const char * path,
const char * path_end,
const MR_RasterLoadSettings * settings )

detects the format from file extension and loads a raster from it Generated from function MR::RasterLoad::fromAnySupportedFormat. Parameter path is a UTF-8 encoded filesystem path. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Raster_std_string_Destroy() to free it when you're done using it.

◆ MR_RasterLoad_infoFromAnySupportedFormat()

MRC_API MR_expected_MR_RasterInfo_std_string * MR_RasterLoad_infoFromAnySupportedFormat ( const char * path,
const char * path_end )

detects the format from file extension and loads everything about the raster except its samples Generated from function MR::RasterLoad::infoFromAnySupportedFormat. Parameter path is a UTF-8 encoded filesystem path. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_RasterInfo_std_string_Destroy() to free it when you're done using it.