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