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
Set to 1.0 to get nice smooth image
fn set_output_gamma(&mut self, value: f64) -> liq_error
The default is sRGB gamma (~1/2.2)
fn output_gamma(&mut self) -> f64
fn quantization_quality(&mut self) -> i32
Number 0-100 guessing how nice the input image will look if remapped to this palette
fn palette(&mut self) -> Vec<Color>
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>
&mut self,
image: &mut Image
) -> Result<(Vec<Color>, Vec<u8>), liq_error>
Remap image
Returns palette and 1-byte-per-pixel uncompresed bitmap