Struct Frame
pub struct Frame { /* private fields */ }
A single animation frame
Implementations
impl Frame
fn new(buffer: RgbaImage) -> FrameConstructs a new frame without any delay.
fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Delay) -> FrameConstructs a new frame
fn delay(&self) -> DelayDelay of this frame
fn buffer(&self) -> &RgbaImageReturns the image buffer
fn buffer_mut(&mut self) -> &mut RgbaImageReturns a mutable image buffer
fn into_buffer(self) -> RgbaImageReturns the image buffer
fn left(&self) -> u32Returns the x offset
fn top(&self) -> u32Returns the y offset
Trait Implementations
impl Clone for Frame
fn clone(&self) -> Selffn clone_from(&mut self, source: &Self)