Function photon_rs::effects::colorize

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

Colorizes the green channels of the image.

Arguments

  • img - A PhotonImage that contains a view into the image.

Example

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

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