[][src]Function photon::monochrome::desaturate

pub fn desaturate(photon_image: &mut PhotonImage)

Desaturate an image by getting the min/max of each pixel's RGB values.

Arguments

Example

// For example, to desaturate an image:
use photon::monochrome;
monochrome::desaturate(&mut img);