[][src]Struct image::gif::Frame

pub struct Frame<'a> {
    pub delay: u16,
    pub dispose: DisposalMethod,
    pub transparent: Option<u8>,
    pub needs_user_input: bool,
    pub top: u16,
    pub left: u16,
    pub width: u16,
    pub height: u16,
    pub interlaced: bool,
    pub palette: Option<Vec<u8>>,
    pub buffer: Cow<'a, [u8]>,
}

A GIF frame

Fields

Frame delay in units of 10 ms.

Disposal method.

Transparent index (if available).

True if the frame needs user input to be displayed.

Offset from the top border of the canvas.

Offset from the left border of the canvas.

Width of the frame.

Height of the frame.

True if the image is interlaced.

Frame local color palette if available.

Buffer containing the image data. Only indices unless configured differently.

Methods

impl Frame<'static>
[src]

Creates a frame from pixels in RGBA format.

Note: This method is not optimized for speed.

Creates a frame from a palette and indexed pixels

Creates a frame from indexed pixels in the global palette

Creates a frame from pixels in RGB format.

Note: This method is not optimized for speed.

Trait Implementations

impl<'a> Debug for Frame<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for Frame<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Default for Frame<'a>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<'a> Send for Frame<'a>

impl<'a> Sync for Frame<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.