pub struct GifWriter { /* private fields */ }Expand description
Encodes a sequence of Texture frames into GIF89a format.
Unlike the single-image writers (BMP, TGA, …), this writer accepts a vector of frames. It does not inherit from textures::Writer.
Implementations§
Source§impl GifWriter
impl GifWriter
Sourcepub fn write(&mut self, file_path: &str, frames: &[&Texture])
pub fn write(&mut self, file_path: &str, frames: &[&Texture])
Write frames to a GIF file on disk using default options.
Sourcepub fn write_frames(&mut self, frames: &[&Texture]) -> Bytes
pub fn write_frames(&mut self, frames: &[&Texture]) -> Bytes
Write frames to a GIF byte buffer using default options.
Sourcepub fn write_file_path_frames_opts(
&mut self,
file_path: &str,
frames: &[&Texture],
opts: &GifSaveOptions,
)
pub fn write_file_path_frames_opts( &mut self, file_path: &str, frames: &[&Texture], opts: &GifSaveOptions, )
Write frames to a GIF file on disk with explicit options.
Sourcepub fn write_frames_opts(
&mut self,
frames: &[&Texture],
opts: &GifSaveOptions,
) -> Bytes
pub fn write_frames_opts( &mut self, frames: &[&Texture], opts: &GifSaveOptions, ) -> Bytes
Write frames to a GIF byte buffer with explicit options.
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
@return true if the last write produced any issues.
Trait Implementations§
impl Send for GifWriter
Auto Trait Implementations§
impl !Sync for GifWriter
impl Freeze for GifWriter
impl RefUnwindSafe for GifWriter
impl Unpin for GifWriter
impl UnsafeUnpin for GifWriter
impl UnwindSafe for GifWriter
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