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