Function libmosh::ops::write_file
source · pub fn write_file(
dest: &str,
buf: &[u8],
width: u32,
height: u32,
color_type: ColorType,
bit_depth: BitDepth
) -> Result<(), MoshError>Expand description
Writes a new file from the provided buffer
§Errors
It may fail if parameters are invalid or due I/O error.