[][src]Struct gift::block::Frame

pub struct Frame {
    pub graphic_control_ext: Option<GraphicControl>,
    pub image_desc: ImageDesc,
    pub local_color_table: Option<LocalColorTable>,
    pub image_data: ImageData,
}

A single frame of a GIF animation.

Frames can be partial image which might depend on previous frames to have a complete image to render.

Fields

graphic_control_ext: Option<GraphicControl>

Graphic control for the frame

image_desc: ImageDesc

Image descriptor for the frame

local_color_table: Option<LocalColorTable>

Local color table for the frame

image_data: ImageData

Image data for the frame

Methods

impl Frame[src]

pub fn new(
    graphic_control_ext: Option<GraphicControl>,
    image_desc: ImageDesc,
    local_color_table: Option<LocalColorTable>,
    image_data: ImageData
) -> Self
[src]

Create a new frame

pub fn disposal_method(&self) -> DisposalMethod[src]

Get the frame disposal method

pub fn transparent_color(&self) -> Option<u8>[src]

Get the frame transparent color

pub fn left(&self) -> u16[src]

Get the left position

pub fn top(&self) -> u16[src]

Get the top position

pub fn width(&self) -> u16[src]

Get the width

pub fn height(&self) -> u16[src]

Get the height

Trait Implementations

impl Debug for Frame[src]

Auto Trait Implementations

impl Send for Frame

impl Sync for Frame

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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