pub struct Builder { /* private fields */ }
Expand description
This type is used to build a Converter
. It is created using
Converter::new()
.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn gif<W: Write>(
self,
bg: Rgba,
out: W,
) -> Result<Converter<Convert2Gif<W>>, EncodingError>
pub fn gif<W: Write>( self, bg: Rgba, out: W, ) -> Result<Converter<Convert2Gif<W>>, EncodingError>
Create a converter for lottie animation to a GIF file.
This is a lossy operation. GIF does not support full alpha channel. Even if you enable the alpha flag for background color, the rgb value is required. This is because semi-transparent pixels will be converted to non-transparent pixels, adding onto the background color. Only fully transparent pixels will remain transparent.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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