Generate palette for the image
(&self, image: &mut Image<'_>)
| 78 | |
| 79 | /// Generate palette for the image |
| 80 | pub fn quantize(&self, image: &mut Image<'_>) -> Result<QuantizationResult, Error> { |
| 81 | let mut hist = Histogram::new(self); |
| 82 | hist.add_image(self, image)?; |
| 83 | hist.quantize_internal(self, false) |
| 84 | } |
| 85 | |
| 86 | /// It's better to use `set_quality()` |
| 87 | #[inline] |
nothing calls this directly
no test coverage detected