Struct rofl::animated_gif::GifAnimation
[−]
[src]
pub struct GifAnimation { pub width: u16, pub height: u16, pub palette: Vec<u8>, pub bg_color: Option<usize>, // some fields omitted }
Animation loaded from a GIF file. The frames are kept in their decoded (RGBA) form.
Fields
width: u16
Width of the animation canvas (logical screen).
height: u16
Height of the animation canvas (logical screen).
palette: Vec<u8>
Global palette (Color Table). This is a contiguous array of RGB bytes.
bg_color: Option<usize>
Index of the background color in global palette, if any.
Methods
impl GifAnimation
[src]
fn frames_count(&self) -> usize
How many frames there are in the animation.
fn iter_frames<'a>(&'a self) -> Box<Iterator<Item = &'a GifFrame> + 'a>
Iterate over the frames in animation.
Trait Implementations
impl Clone for GifAnimation
[src]
fn clone(&self) -> GifAnimation
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