[][src]Function photon::monochrome::g_grayscale

pub fn g_grayscale(photon_image: &mut PhotonImage)

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

Arguments

Example

monochrome::g_grayscale(&mut img);