pub struct GifWriter<W: Write> { /* private fields */ }Expand description
A writer for creating GIF89a formatted data.
Implementations§
Source§impl<W: Write> GifWriter<W>
impl<W: Write> GifWriter<W>
Sourcepub fn write_header(&mut self) -> Result<()>
pub fn write_header(&mut self) -> Result<()>
Writes the GIF89a header.
Sourcepub fn write_logical_screen_descriptor(
&mut self,
options: &GifOptions,
) -> Result<()>
pub fn write_logical_screen_descriptor( &mut self, options: &GifOptions, ) -> Result<()>
Writes the Logical Screen Descriptor block.
Sourcepub fn write_netscape_loop_block(&mut self) -> Result<()>
pub fn write_netscape_loop_block(&mut self) -> Result<()>
Writes the Netscape Application Block for infinite looping.
Sourcepub fn write_global_palette(&mut self, palette: &[u8]) -> Result<()>
pub fn write_global_palette(&mut self, palette: &[u8]) -> Result<()>
Writes the global palette data.
Sourcepub fn write_graphic_control_extension(
&mut self,
delay: u16,
transparent_idx: Option<u8>,
) -> Result<()>
pub fn write_graphic_control_extension( &mut self, delay: u16, transparent_idx: Option<u8>, ) -> Result<()>
Writes a Graphic Control Extension block for a frame.
Sourcepub fn write_image_data(
&mut self,
descriptor: &ImageDescriptor,
indices: &[u8],
encoder: &mut LzwEncoder,
) -> Result<()>
pub fn write_image_data( &mut self, descriptor: &ImageDescriptor, indices: &[u8], encoder: &mut LzwEncoder, ) -> Result<()>
Writes encoded image data sub-blocks.
Sourcepub fn write_trailer(&mut self) -> Result<()>
pub fn write_trailer(&mut self) -> Result<()>
Writes the GIF trailer byte.
Auto Trait Implementations§
impl<W> Freeze for GifWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for GifWriter<W>where
W: RefUnwindSafe,
impl<W> Send for GifWriter<W>where
W: Send,
impl<W> Sync for GifWriter<W>where
W: Sync,
impl<W> Unpin for GifWriter<W>where
W: Unpin,
impl<W> UnwindSafe for GifWriter<W>where
W: UnwindSafe,
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