[−][src]Function pconvert_rust::utils::write_png_to_file
pub fn write_png_to_file(
file_out: String,
png: &ImageBuffer<Rgba<u8>, Vec<u8>>,
compression: CompressionType,
filter: FilterType
) -> Result<(), PConvertError>
Writes a 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.