client::networking

Function save_fractal_image

Source
pub fn save_fractal_image(
    img: ImageBuffer<Rgb<u8>, Vec<u8>>,
    img_path: &str,
) -> Result<(), FractalError>
Expand description

Save a fractal image to the filesystem.

§Arguments

  • img - An ImageBuffer containing the fractal image.
  • img_path - A reference to the path where the image will be saved.

§Return

  • Result<(), FractalError> - An io::Error if the image could not be saved.