[][src]Function photon::native::save_image

pub fn save_image(img: PhotonImage, img_path: &str)

Save the image to the filesystem at a given path.

Arguments

Example

// For example:
use photon::native::save_image;
 
// Save the image at the given path.
save_image(img, "images/flowers.PNG");