[−][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
Implementations
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
pub fn region(&self) -> Region
[src]
Get frame region
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub 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>,