Struct libvips_rs::ops::GifsaveBufferOptions
source · pub struct GifsaveBufferOptions {
pub dither: f64,
pub effort: i32,
pub bitdepth: i32,
pub interframe_maxerror: f64,
pub reoptimise: bool,
pub interpalette_maxerror: f64,
pub strip: bool,
pub background: Vec<f64>,
pub page_height: i32,
}
Expand description
Options for gifsave_buffer operation
Fields§
§dither: f64
dither: f64
-> Amount of dithering
min: 0, max: 1, default: 1
effort: i32
effort: i32
-> Quantisation effort
min: 1, max: 10, default: 7
bitdepth: i32
bitdepth: i32
-> Number of bits per pixel
min: 1, max: 8, default: 8
interframe_maxerror: f64
interframe_maxerror: f64
-> Maximum inter-frame error for transparency
min: 0, max: 32, default: 0
reoptimise: bool
reoptimise: bool
-> Reoptimise colour palettes
default: false
interpalette_maxerror: f64
interpalette_maxerror: f64
-> Maximum inter-palette error for palette reusage
min: 0, max: 256, default: 3
strip: bool
strip: bool
-> Strip all metadata from image
default: false
background: Vec<f64>
background: Vec<f64>
-> Background value
page_height: i32
page_height: i32
-> Set page height for multipage save
min: 0, max: 10000000, default: 0
Trait Implementations§
source§impl Clone for GifsaveBufferOptions
impl Clone for GifsaveBufferOptions
source§fn clone(&self) -> GifsaveBufferOptions
fn clone(&self) -> GifsaveBufferOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GifsaveBufferOptions
impl Debug for GifsaveBufferOptions
Auto Trait Implementations§
impl RefUnwindSafe for GifsaveBufferOptions
impl Send for GifsaveBufferOptions
impl Sync for GifsaveBufferOptions
impl Unpin for GifsaveBufferOptions
impl UnwindSafe for GifsaveBufferOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more