[][src]Function photon::transform::fliph

pub fn fliph(photon_image: &mut PhotonImage)

Flip an image horizontally.

Arguments

Example

// For example, to flip an image horizontally:
use photon::transform;
let img = photon::open_image("img.jpg");
let new_img = photon::transform::fliph(&mut img);
// Write the contents of this image in JPG format.
photon::helpers::save_image(new_img, "new_image.png");