[][src]Function photon::monochrome::r_grayscale

pub fn r_grayscale(photon_image: &mut PhotonImage)

Convert an image to grayscale by setting a pixel's 3 RGB values to the Red channel's value.

Arguments

Example

monochrome::r_grayscale(&mut img);