MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::raster_save Namespace Reference

Functions

auto to_tiff_mr_tiff_save_settings (raster:&meshlib::Raster, path:&str, settings:&meshlib::TiffSaveSettings) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_tiff_mr_raster_save_settings (raster:&meshlib::Raster, path:&str, settings:Option<&meshlib::RasterSaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format (raster:&meshlib::Raster, path:&str, settings:Option<&meshlib::RasterSaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >

Function Documentation

◆ to_any_supported_format()

auto meshlib::raster_save::to_any_supported_format ( raster:&meshlib::Raster ,
path:& str,
settings:Option<&meshlib::RasterSaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

detects the format from file extension and saves the raster in it Generated from function MR::RasterSave::toAnySupportedFormat.

Calls MR_RasterSave_toAnySupportedFormat().

◆ to_tiff_mr_raster_save_settings()

auto meshlib::raster_save::to_tiff_mr_raster_save_settings ( raster:&meshlib::Raster ,
path:& str,
settings:Option<&meshlib::RasterSaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::RasterSave::toTiff.

Calls MR_RasterSave_toTiff_MR_RasterSaveSettings().

◆ to_tiff_mr_tiff_save_settings()

auto meshlib::raster_save::to_tiff_mr_tiff_save_settings ( raster:&meshlib::Raster ,
path:& str,
settings:&meshlib::TiffSaveSettings  ) -> meshlib::Owned< meshlib::expected_void_std_string >

saves a raster with one layer in .tiff format: one channel of gray values, or three or four channels of RGB or RGBA colors (unassociated alpha: the colors are not multiplied by it), of any type from UInt8 to Float64 Generated from function MR::RasterSave::toTiff.

Calls MR_RasterSave_toTiff_MR_TiffSaveSettings().