Struct gif::Frame [−][src]
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]>,
}Expand description
A GIF frame
Fields
delay: u16Frame delay in units of 10 ms.
dispose: DisposalMethodDisposal method.
transparent: Option<u8>Transparent index (if available).
needs_user_input: boolTrue if the frame needs user input do be displayed.
top: u16Offset from the top border of the canvas.
left: u16Offset from the left border of the canvas.
width: u16Width of the frame.
height: u16Height of the frame.
interlaced: boolTrue if the image is interlaced.
palette: Option<Vec<u8>>Frame local color palette if available.
buffer: Cow<'a, [u8]>Buffer containing the image data. Only indices unless configured differently.
Implementations
Creates a frame from pixels in RGBA format.
Note: This method is not optimized for speed.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more