Struct imagequant::Attributes
[−]
[src]
pub struct Attributes { /* fields omitted */ }
Methods
impl Attributes
[src]
fn new() -> Attributes
fn set_max_colors(&mut self, value: i32) -> liq_error
fn set_min_posterization(&mut self, value: i32) -> liq_error
fn set_quality(&mut self, min: u32, max: u32) -> liq_error
fn set_speed(&mut self, value: i32) -> liq_error
fn set_last_index_transparent(&mut self, value: bool)
fn speed(&mut self) -> i32
fn max_colors(&mut self) -> i32
fn new_image<'a, T: Copy + Clone>(&self, bitmap: &'a [T], width: usize, height: usize, gamma: f64) -> Option<Image<'a>>
fn new_histogram(&self) -> Histogram
fn quantize(&mut self, image: &Image) -> Result<QuantizationResult, liq_error>
Trait Implementations
impl Drop for Attributes
[src]
impl Clone for Attributes
[src]
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more