[−][src]Struct gift::block::Frame
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]
graphic_control_ext: Option<GraphicControl>,
image_desc: ImageDesc,
local_color_table: Option<LocalColorTable>,
image_data: ImageData
) -> Self
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,