Struct rofl::animated_gif::GifFrame
[−]
[src]
pub struct GifFrame { pub image: DynamicImage, pub metadata: Frame<'static>, }
A single frame of an animated GIF template.
Fields
image: DynamicImage
The image of the frame.
metadata: Frame<'static>
gif::Frame structure containing just the metadata of the frame.
The actual buffer is emptied and converted into the image
.
Methods
impl GifFrame
[src]
fn from_rgba<'f>(
metadata: &Frame<'f>,
width: usize,
height: usize,
pixels: &[u8]
) -> Self
metadata: &Frame<'f>,
width: usize,
height: usize,
pixels: &[u8]
) -> Self
Create a GifFrame from the gif::Frame metadata & specified RGBA buffer.
Trait Implementations
impl Clone for GifFrame
[src]
fn clone(&self) -> GifFrame
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