Function photon_rs::monochrome::sepia

source ·
pub fn sepia(img: &mut PhotonImage)
Expand description

Convert an image to sepia.

Arguments

  • photon_image - A PhotonImage.

Example

// For example, to sepia an image of type `PhotonImage`:
use photon_rs::monochrome::sepia;
use photon_rs::native::open_image;

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