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

Functions

auto from_jpeg_2_std_filesystem_path (path:&str, ignoreDecompressErrors:Option< bool >) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >
auto from_jpeg_2_std_istream (in:&mut meshlib::std_istream, ignoreDecompressErrors:Option< bool >) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >
auto from_jpeg_3 (data:Option<&core::ffi::c_char >, size:usize, ignoreDecompressErrors:Option< bool >) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >
auto from_png_std_filesystem_path (path:&str) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >
auto from_png_std_istream (in:&mut meshlib::std_istream) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >
auto from_tiff (path:&str) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >
auto from_any_supported_format (path:&str) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

Function Documentation

◆ from_any_supported_format()

auto meshlib::image_load::from_any_supported_format ( path:& str) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

detects the format from file extension and loads image from it Generated from function MR::ImageLoad::fromAnySupportedFormat.

Calls MR_ImageLoad_fromAnySupportedFormat().

◆ from_jpeg_2_std_filesystem_path()

auto meshlib::image_load::from_jpeg_2_std_filesystem_path ( path:& str,
ignoreDecompressErrors:Option< bool >  ) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

loads from .jpg format

Parameters
ignoreDecompressErrorsif true do not return decompression error if the header was read sucessfully Generated from function MR::ImageLoad::fromJpeg.

Calls MR_ImageLoad_fromJpeg_2_std_filesystem_path().

◆ from_jpeg_2_std_istream()

auto meshlib::image_load::from_jpeg_2_std_istream ( in:&mut meshlib::std_istream ,
ignoreDecompressErrors:Option< bool >  ) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

Generated from function MR::ImageLoad::fromJpeg.

Calls MR_ImageLoad_fromJpeg_2_std_istream().

◆ from_jpeg_3()

auto meshlib::image_load::from_jpeg_3 ( data:Option<&core::ffi::c_char > ,
size:usize ,
ignoreDecompressErrors:Option< bool >  ) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

Generated from function MR::ImageLoad::fromJpeg.

Calls MR_ImageLoad_fromJpeg_3().

◆ from_png_std_filesystem_path()

auto meshlib::image_load::from_png_std_filesystem_path ( path:& str) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

loads from .png format Generated from function MR::ImageLoad::fromPng.

Calls MR_ImageLoad_fromPng_std_filesystem_path().

◆ from_png_std_istream()

auto meshlib::image_load::from_png_std_istream ( in:&mut meshlib::std_istream ) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

Generated from function MR::ImageLoad::fromPng.

Calls MR_ImageLoad_fromPng_std_istream().

◆ from_tiff()

auto meshlib::image_load::from_tiff ( path:& str) -> meshlib::Owned< meshlib::expected_MR_Image_std_string >

loads the first image of a .tiff file: libtiff decodes the formats it supports, the others are loaded by RasterLoad::fromTiff and converted by convertRasterToImage; the colors are not multiplied by alpha unless the file stores them so (associated alpha) Generated from function MR::ImageLoad::fromTiff.

Calls MR_ImageLoad_fromTiff().