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

Functions

auto to_jpeg (image:&meshlib::Image, path:&str) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_png_std_filesystem_path (image:&meshlib::Image, path:&str) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_png_std_ostream (image:&meshlib::Image, os:&mut meshlib::std_ostream) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_tiff (image:&meshlib::Image, path:&str) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_bmp (image:&meshlib::Image, path:&str) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format (image:&meshlib::Image, path:&str) -> meshlib::Owned< meshlib::expected_void_std_string >

Function Documentation

◆ to_any_supported_format()

auto meshlib::image_save::to_any_supported_format ( image:&meshlib::Image ,
path:& str ) -> meshlib::Owned< meshlib::expected_void_std_string >

detects the format from file extension and save image to it Generated from function MR::ImageSave::toAnySupportedFormat.

Calls MR_ImageSave_toAnySupportedFormat().

◆ to_bmp()

auto meshlib::image_save::to_bmp ( image:&meshlib::Image ,
path:& str ) -> meshlib::Owned< meshlib::expected_void_std_string >

saves in .bmp format Generated from function MR::ImageSave::toBmp.

Calls MR_ImageSave_toBmp().

◆ to_jpeg()

auto meshlib::image_save::to_jpeg ( image:&meshlib::Image ,
path:& str ) -> meshlib::Owned< meshlib::expected_void_std_string >

saves in .jpg format Generated from function MR::ImageSave::toJpeg.

Calls MR_ImageSave_toJpeg().

◆ to_png_std_filesystem_path()

auto meshlib::image_save::to_png_std_filesystem_path ( image:&meshlib::Image ,
path:& str ) -> meshlib::Owned< meshlib::expected_void_std_string >

saves in .png format Generated from function MR::ImageSave::toPng.

Calls MR_ImageSave_toPng_std_filesystem_path().

◆ to_png_std_ostream()

auto meshlib::image_save::to_png_std_ostream ( image:&meshlib::Image ,
os:&mut meshlib::std_ostream  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::ImageSave::toPng.

Calls MR_ImageSave_toPng_std_ostream().

◆ to_tiff()

auto meshlib::image_save::to_tiff ( image:&meshlib::Image ,
path:& str ) -> meshlib::Owned< meshlib::expected_void_std_string >

saves in .tiff format with unassociated alpha, as in Image: the colors are not multiplied by it Generated from function MR::ImageSave::toTiff.

Calls MR_ImageSave_toTiff().