Skip to main content

Quantizer

Trait Quantizer 

Source
pub trait Quantizer {
    // Required method
    fn quantize(
        &mut self,
        pixels: &[Argb],
        max_colors: usize,
    ) -> QuantizerResult;
}
Expand description

An interface to allow use of different quantization techniques.

Required Methods§

Source

fn quantize(&mut self, pixels: &[Argb], max_colors: usize) -> QuantizerResult

Implementors§