Function cosmic::iced_winit::graphics::image::image_rs::imageops::grayscale_alpha
source ยท pub fn grayscale_alpha<I>(
image: &I,
) -> ImageBuffer<LumaA<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>, Vec<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>>where
I: GenericImageView,
Expand description
Convert the supplied image to grayscale. Alpha channel is preserved.