Struct engiffen::Gif [] [src]

pub struct Gif {
    pub palette: Vec<u8>,
    pub transparency: Option<u8>,
    pub width: u16,
    pub height: u16,
    pub images: Vec<Vec<u8>>,
    pub delay: u16,
}

Struct representing an animated Gif

Fields

Methods

impl Gif
[src]

Writes the animated Gif to any output that implements Write.

Examples

use std::fs::File;
let mut output = File::create("output.gif")?;
let gif = engiffen(&images, 10, Quantizer::NeuQuant(2))?;
gif.write(&mut output)?;

Errors

Returns the std::io::Result of the underlying write function calls.

Trait Implementations

impl Eq for Gif
[src]

impl PartialEq for Gif
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Gif
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Gif
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Gif
[src]

Formats the value using the given formatter.