Function cosmic::iced_winit::graphics::image::image_rs::imageops::grayscale

source ยท
pub fn grayscale<I>(
    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.