pub fn dither(
img: &ImageBuffer<'_>,
palette: impl AsRef<Palette>,
config: DitherConfig,
) -> Vec<u8> ⓘExpand description
Dither an image for e-paper display.
Returns palette indices (one u8 per pixel, length = width × height).
pub fn dither(
img: &ImageBuffer<'_>,
palette: impl AsRef<Palette>,
config: DitherConfig,
) -> Vec<u8> ⓘDither an image for e-paper display.
Returns palette indices (one u8 per pixel, length = width × height).