pub struct Frame {
pub graphic_control_ext: Option<GraphicControl>,
pub image_desc: ImageDesc,
pub local_color_table: Option<LocalColorTable>,
pub image_data: ImageData,
}
Expand description
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§
source§impl Frame
impl Frame
sourcepub fn new(
graphic_control_ext: Option<GraphicControl>,
image_desc: ImageDesc,
local_color_table: Option<LocalColorTable>,
image_data: ImageData
) -> Self
pub fn new( graphic_control_ext: Option<GraphicControl>, image_desc: ImageDesc, local_color_table: Option<LocalColorTable>, image_data: ImageData ) -> Self
Create a new frame
sourcepub fn disposal_method(&self) -> DisposalMethod
pub fn disposal_method(&self) -> DisposalMethod
Get the frame disposal method
sourcepub fn transparent_color(&self) -> Option<u8>
pub fn transparent_color(&self) -> Option<u8>
Get the frame transparent color
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more