Function write_png_parallel

Source
pub fn write_png_parallel(
    file_out: String,
    png: &ImageBuffer<Rgba<u8>, Vec<u8>>,
    compression: CompressionType,
    filter: FilterType,
) -> Result<(), PConvertError>
Expand description

[SUPPORTED IN WASM] WASM stub; single-threaded write PNG to the local file system.

ยงArguments

  • file_out - Local file system path where to write the PNG file.
  • png - A byte buffer with the image data.
  • compression - Compression type to use in the encoding.
  • filter - Filter type to use in the encoding.