Struct image::Frame [] [src]

pub struct Frame {
    // some fields omitted
}

A single animation frame

Methods

impl Frame
[src]

fn new(buffer: RgbaImage) -> Frame

Contructs a new frame

fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Ratio<u16>) -> Frame

Contructs a new frame

fn delay(&self) -> Ratio<u16>

Delay of this frame

fn buffer(&self) -> &RgbaImage

Returns the image buffer

fn into_buffer(self) -> RgbaImage

Returns the image buffer

fn left(&self) -> u32

Returns the x offset

fn top(&self) -> u32

Returns the y offset

Trait Implementations

impl Clone for Frame
[src]

fn clone(&self) -> Frame

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more