Struct image::Frame [] [src]

pub struct Frame {
    // some fields omitted
}
[]

A single animation frame

Methods

impl Frame

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

Derived Implementations

impl Clone for Frame

fn clone(&self) -> Frame

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