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 of the animation canvas (logical screen).

Height of the animation canvas (logical screen).

Global palette (Color Table). This is a contiguous array of RGB bytes.

Index of the background color in global palette, if any.

Methods

impl GifAnimation
[src]

How many frames there are in the animation.

Iterate over the frames in animation.

Trait Implementations

impl Clone for GifAnimation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GifAnimation
[src]

Formats the value using the given formatter.