[][src]Struct rin::graphics::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]

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

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

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

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

Blanket Implementations

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

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

impl<T> From for T
[src]

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.

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

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

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.

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

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T
[src]

Should always be Self