Module pconvert_rust::wasm
source · Expand description
Web Assembly (WASM) extension, exported functions and type conversions.
Modules
- Benchmarking functions of the WASM API exposed
- From and to conversions for rust and javascript types.
- PNG decode/encode and load functions, console log macros, argument parsing from javascript input to inner-crate rust types and other utility functions.
Functions
- Blends two image buffers using
algorithm
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - Blends two
ImageData
objects into one usingalgorithm
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - Blends two
File
s into one, namedtarget_file_name
, usingalgorithm
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - Blends multiple
ImageData
objects into one usingalgorithm
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - [NodeJS only] Blends multiple images read from local file system into one using
algorithm
oralgorithms
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - [NodeJS only] Asynchronously blends multiple images read from local file system into one using
algorithm
oralgorithms
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - Blends multiple
File
s into one, namedtarget_file_name
, usingalgorithm
and the extraoptions
given. Algorithm defaults toBlendAlgorithm::Multiplicative
. - Returns a JSON object with the module constants (e.g. ALGORITHMS, COMPILER, COMPILER_VERSION, …).