Module wasm

Source
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 algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
blend_images_data_js
Blends two ImageData objects into one using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
blend_images_js
Blends two Files into one, named target_file_name, using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
blend_multiple_data_js
Blends multiple ImageData objects into one using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
blend_multiple_fs
[NodeJS only] Blends multiple images read from local file system into one using algorithm or algorithms and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
blend_multiple_fs_async
[NodeJS only] Asynchronously blends multiple images read from local file system into one using algorithm or algorithms and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
blend_multiple_js
Blends multiple Files into one, named target_file_name, using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
get_module_constants_js
Returns a JSON object with the module constants (e.g. ALGORITHMS, COMPILER, COMPILER_VERSION, …).