pub enum AnimationMode {
Rgba,
Bgra,
PremultipliedRgba,
PremultipliedBgra,
}Expand description
The color mode of an animation’s canvas: the four modes that libwebp’s animation decoder supports.
§Examples
use webp::api::decode::{AnimationMode, AnimationOptions};
assert_eq!(AnimationOptions::default().mode, AnimationMode::Rgba);Variants§
Rgba
Red, green, blue, straight alpha (C: MODE_RGBA).
Bgra
Blue, green, red, straight alpha (C: MODE_BGRA).
PremultipliedRgba
Red, green, blue, premultiplied alpha (C: MODE_rgbA); the frames are
blended premultiplied.
PremultipliedBgra
Blue, green, red, premultiplied alpha (C: MODE_bgrA).
Trait Implementations§
Source§impl Clone for AnimationMode
impl Clone for AnimationMode
impl Copy for AnimationMode
Source§impl Debug for AnimationMode
impl Debug for AnimationMode
Source§impl Default for AnimationMode
impl Default for AnimationMode
impl Eq for AnimationMode
Source§impl Hash for AnimationMode
impl Hash for AnimationMode
Source§impl PartialEq for AnimationMode
impl PartialEq for AnimationMode
impl StructuralPartialEq for AnimationMode
Auto Trait Implementations§
impl Forget for AnimationMode
impl Freeze for AnimationMode
impl Move for AnimationMode
impl RefUnwindSafe for AnimationMode
impl Send for AnimationMode
impl Sync for AnimationMode
impl Unpin for AnimationMode
impl UnsafeUnpin for AnimationMode
impl UnwindSafe for AnimationMode
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