image::imageops::colorops

Function grayscale

Source
pub fn grayscale<I: GenericImageView>(
    image: &I,
) -> ImageBuffer<Luma<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>, Vec<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>>
Expand description

Convert the supplied image to grayscale. Alpha channel is discarded.