Struct gif_dispose::Screen [] [src]

pub struct Screen {
    pub pixels: Vec<RGBA8>,
    pub width: usize,
    pub height: usize,
    // some fields omitted
}

Fields

Result of combining frames

Width of the screen

Height of the screen

Methods

impl Screen
[src]

Initialize empty screen from GIF Reader. Make sure Reader is set to use Indexed color. decoder.set(gif::ColorOutput::Indexed);

Advance the screen by one frame. The result will be in screen.pixels