Function photon_rs::transform::flipv

source ·
pub fn flipv(photon_image: &mut PhotonImage)
Expand description

Flip an image vertically.

Arguments

  • img - A PhotonImage.

Example

// For example, to flip an image vertically:
use photon_rs::native::open_image;
use photon_rs::transform::flipv;

let mut img = open_image("img.jpg").expect("File should open");
flipv(&mut img);