pub struct Frame { /* private fields */ }
Expand description
A single animation frame
Implementations
sourceimpl Frame
impl Frame
sourcepub fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Delay) -> Frame
pub fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Delay) -> Frame
Contructs a new frame
sourcepub fn buffer_mut(&mut self) -> &mut RgbaImage
pub fn buffer_mut(&mut self) -> &mut RgbaImage
Returns a mutable image buffer
sourcepub fn into_buffer(self) -> RgbaImage
pub fn into_buffer(self) -> RgbaImage
Returns the image buffer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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