[][src]Function photon::monochrome::b_grayscale

pub fn b_grayscale(photon_image: &mut PhotonImage)

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

Arguments

Example

monochrome::b_grayscale(&mut img);