[][src]Function photon::monochrome::grayscale

pub fn grayscale(photon_image: &mut PhotonImage)

Convert an image to grayscale using the conventional averaging algorithm.

Arguments

Example

// For example, to convert an image of type `PhotonImage` to greyscale:
use photon::monochrome;
monochrome::grayscale(&mut img);