[][src]Function photon_rs::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

  • photon_image - A PhotonImage.

Example

monochrome::b_grayscale(&mut img);