Struct imagequant::QuantizationResult
[−]
[src]
pub struct QuantizationResult { /* fields omitted */ }
Palette inside.
Methods
impl QuantizationResult
[src]
fn set_dithering_level(&mut self, value: f32) -> liq_error
[src]
Set to 1.0 to get nice smooth image
fn set_output_gamma(&mut self, value: f64) -> liq_error
[src]
The default is sRGB gamma (~1/2.2)
fn output_gamma(&mut self) -> f64
[src]
fn quantization_quality(&mut self) -> i32
[src]
Number 0-100 guessing how nice the input image will look if remapped to this palette
fn quantization_error(&mut self) -> Option<f64>
[src]
Approximate mean square error of the palette
fn palette(&mut self) -> Vec<Color>
[src]
Final palette
It's slighly better if you get palette from the remapped()
call instead
fn remapped(
&mut self,
image: &mut Image
) -> Result<(Vec<Color>, Vec<u8>), liq_error>
[src]
&mut self,
image: &mut Image
) -> Result<(Vec<Color>, Vec<u8>), liq_error>
Remap image
Returns palette and 1-byte-per-pixel uncompresed bitmap