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 extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
  • Blends two ImageData objects into one using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
  • Blends two Files into one, named target_file_name, using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
  • Blends multiple ImageData objects into one using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
  • [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.
  • [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.
  • Blends multiple Files into one, named target_file_name, using algorithm and the extra options given. Algorithm defaults to BlendAlgorithm::Multiplicative.
  • Returns a JSON object with the module constants (e.g. ALGORITHMS, COMPILER, COMPILER_VERSION, …).