Expand description
Web Assembly (WASM) extension, exported functions and type conversions.
Modules§
- benchmark
- Benchmarking functions of the WASM API exposed
- conversions
- From and to conversions for rust and javascript types.
- utils
- PNG decode/encode and load functions, console log macros, argument parsing from javascript input to inner-crate rust types and other utility functions.
Functions§
- blend_
image_ buffers - Blends two image buffers using
algorithmand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - blend_
images_ data_ js - Blends two
ImageDataobjects into one usingalgorithmand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - blend_
images_ js - Blends two
Files into one, namedtarget_file_name, usingalgorithmand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - blend_
multiple_ data_ js - Blends multiple
ImageDataobjects into one usingalgorithmand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - blend_
multiple_ fs - [NodeJS only]
Blends multiple images read from local file system into one using
algorithmoralgorithmsand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - blend_
multiple_ fs_ async - [NodeJS only]
Asynchronously blends multiple images read from local file system into one using
algorithmoralgorithmsand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - blend_
multiple_ js - Blends multiple
Files into one, namedtarget_file_name, usingalgorithmand the extraoptionsgiven. Algorithm defaults toBlendAlgorithm::Multiplicative. - get_
module_ constants_ js - Returns a JSON object with the module constants (e.g. ALGORITHMS, COMPILER, COMPILER_VERSION, …).