Function photon_rs::transform::fliph

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

Flip an image horizontally.

Arguments

  • img - A PhotonImage.

Example

// For example, to flip an image horizontally:
use photon_rs::native::open_image;
use photon_rs::transform::fliph;

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