Struct lottieconv::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

This type is used to build a Converter. It is created using Converter::new().

Implementations§

Change the size of the output image.

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.

Create a converter for lottie animation to a WEBP file.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.