Function image::imageops::colorops::grayscale_with_type_alpha
source · pub fn grayscale_with_type_alpha<NewPixel, I: GenericImageView>(
image: &I
) -> ImageBuffer<NewPixel, Vec<NewPixel::Subpixel>>
Expand description
Convert the supplied image to a grayscale image with the specified pixel type. Alpha channel is preserved.