Struct image::Frame
[−]
[src]
pub struct Frame { /* fields omitted */ }
A single animation frame
Methods
impl Frame
[src]
fn new(buffer: RgbaImage) -> Frame
[src]
Contructs a new frame
fn from_parts(
buffer: RgbaImage,
left: u32,
top: u32,
delay: Ratio<u16>
) -> Frame
[src]
buffer: RgbaImage,
left: u32,
top: u32,
delay: Ratio<u16>
) -> Frame
Contructs a new frame
fn delay(&self) -> Ratio<u16>
[src]
Delay of this frame
fn buffer(&self) -> &RgbaImage
[src]
Returns the image buffer
fn into_buffer(self) -> RgbaImage
[src]
Returns the image buffer
fn left(&self) -> u32
[src]
Returns the x offset
fn top(&self) -> u32
[src]
Returns the y offset