Function image::imageops::colorops::dither[][src]

pub fn dither<Pix, Map: ?Sized>(
    image: &mut ImageBuffer<Pix, Vec<u8>>,
    color_map: &Map
) where
    Map: ColorMap<Color = Pix>,
    Pix: Pixel<Subpixel = u8> + 'static, 

Reduces the colors of the image using the supplied color_map while applying Floyd-Steinberg dithering to improve the visual conception