MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.imageload.Functions Class Reference

Static Public Member Functions

static meshlib.Image fromAnySupportedFormat (java.lang.String path)
static meshlib.Image fromJpeg (java.lang.String path, java.lang.Boolean ignoreDecompressErrors)
static meshlib.Image fromJpeg (meshlib.std_istream in, java.lang.Boolean ignoreDecompressErrors)
static meshlib.Image fromJpeg (java.lang.Byte data, long size, java.lang.Boolean ignoreDecompressErrors)
static meshlib.Image fromPng (java.lang.String path)
static meshlib.Image fromPng (meshlib.std_istream in)
static meshlib.Image fromTiff (java.lang.String path)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ fromAnySupportedFormat()

meshlib.Image meshlib.imageload.Functions.fromAnySupportedFormat ( java.lang.String path)
static

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

Calls MR_ImageLoad_fromAnySupportedFormat(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromJpeg() [1/3]

meshlib.Image meshlib.imageload.Functions.fromJpeg ( java.lang.Byte data,
long size,
java.lang.Boolean ignoreDecompressErrors )
static

Generated from function MR::ImageLoad::fromJpeg.

Calls MR_ImageLoad_fromJpeg_3(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromJpeg() [2/3]

meshlib.Image meshlib.imageload.Functions.fromJpeg ( java.lang.String path,
java.lang.Boolean ignoreDecompressErrors )
static

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(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromJpeg() [3/3]

meshlib.Image meshlib.imageload.Functions.fromJpeg ( meshlib.std_istream in,
java.lang.Boolean ignoreDecompressErrors )
static

Generated from function MR::ImageLoad::fromJpeg.

Calls MR_ImageLoad_fromJpeg_2_std_istream(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromPng() [1/2]

meshlib.Image meshlib.imageload.Functions.fromPng ( java.lang.String path)
static

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

Calls MR_ImageLoad_fromPng_std_filesystem_path(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromPng() [2/2]

meshlib.Image meshlib.imageload.Functions.fromPng ( meshlib.std_istream in)
static

Generated from function MR::ImageLoad::fromPng.

Calls MR_ImageLoad_fromPng_std_istream(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromTiff()

meshlib.Image meshlib.imageload.Functions.fromTiff ( java.lang.String path)
static

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(). The C++ function returns expected<MR::Image, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


The documentation for this class was generated from the following file: