pub struct Settings {
pub width: Option<u32>,
pub height: Option<u32>,
pub quality: u8,
pub fast: bool,
pub repeat: Repeat,
}
Expand description
Encoding settings for the new()
function
Fields
width: Option<u32>
Resize to max this width if non-0.
height: Option<u32>
Resize to max this height if width is non-0. Note that aspect ratio is not preserved.
quality: u8
1-100, but useful range is 50-100. Recommended to set to 100.
fast: bool
Lower quality, but faster encode.
repeat: Repeat
Sets the looping method for the image sequence.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more